Commit 5775db93 authored by Roque's avatar Roque

Always yes mode argument

parent 452e2f8d
...@@ -44,6 +44,7 @@ UPDATE="U" ...@@ -44,6 +44,7 @@ UPDATE="U"
RESUME="R" RESUME="R"
DOWNLOAD="D" DOWNLOAD="D"
ASK="A" ASK="A"
ALWAYS_YES="false"
# load data lake url from file if exists # load data lake url from file if exists
if [ -f "$DATA_LAKE_URL_FILE" ]; then if [ -f "$DATA_LAKE_URL_FILE" ]; then
...@@ -280,6 +281,7 @@ function updateConfigFile { ...@@ -280,6 +281,7 @@ function updateConfigFile {
ING_URL=\"$ING_URL\" ING_URL=\"$ING_URL\"
STORAGE=\"$STORAGE\" STORAGE=\"$STORAGE\"
STATUS=\"$STATUS\" STATUS=\"$STATUS\"
ALWAYS_YES=\"$ALWAYS_YES\"
S3_BUCKET=\"$S3_BUCKET\" S3_BUCKET=\"$S3_BUCKET\"
S3_PREFIX=\"$S3_PREFIX\" S3_PREFIX=\"$S3_PREFIX\"
...@@ -603,6 +605,8 @@ while [ "$1" != "" ]; do ...@@ -603,6 +605,8 @@ while [ "$1" != "" ]; do
-d | --directory ) shift -d | --directory ) shift
DATASET_DIR=$1 DATASET_DIR=$1
;; ;;
-y | --yes ) ALWAYS_YES="true"
;;
-s | --storage ) shift -s | --storage ) shift
STORAGE=$1 STORAGE=$1
;; ;;
......
...@@ -8,6 +8,7 @@ in: ...@@ -8,6 +8,7 @@ in:
chunk_size: $CHUNK chunk_size: $CHUNK
output_path: $DATASET_DIR output_path: $DATASET_DIR
tool_dir: $TOOL_DIR tool_dir: $TOOL_DIR
always_yes: $ALWAYS_YES
out: out:
type: fif type: fif
......
exec: exec:
max_threads: 1 max_threads: 1
min_output_tasks: 1 min_output_tasks: 1
in: in:
...@@ -10,8 +10,9 @@ in: ...@@ -10,8 +10,9 @@ in:
erp5_url: $DOWN_URL erp5_url: $DOWN_URL
tool_dir: $TOOL_DIR tool_dir: $TOOL_DIR
status: $STATUS status: $STATUS
always_yes: $ALWAYS_YES
out: out:
type: wendelin type: wendelin
erp5_url: $ING_URL erp5_url: $ING_URL
type_input: "filesystem" type_input: "filesystem"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# PLEASE FILL THE 'IN' SECTION ACCORDING TO YOUR PLUGIN # PLEASE FILL THE 'IN' SECTION ACCORDING TO YOUR PLUGIN
in: in:
always_yes: $ALWAYS_YES
# FOR EXAMPLE CSV FILES # FOR EXAMPLE CSV FILES
# type: file # type: file
...@@ -25,13 +26,13 @@ in: ...@@ -25,13 +26,13 @@ in:
chunk_size: $CHUNK chunk_size: $CHUNK
storage: $STORAGE storage: $STORAGE
out: out:
type: wendelin type: wendelin
erp5_url: $ING_URL erp5_url: $ING_URL
tool_dir: $TOOL_DIR tool_dir: $TOOL_DIR
data_set: $DATA_SET data_set: $DATA_SET
erp5_base_url: $DOWN_URL erp5_base_url: $DOWN_URL
exec: exec:
max_threads: 1 max_threads: 1
min_output_tasks: 1 min_output_tasks: 1
...@@ -8,6 +8,7 @@ in: ...@@ -8,6 +8,7 @@ in:
user: $FTP_USER user: $FTP_USER
password: $FTP_PASSWORD password: $FTP_PASSWORD
path_prefix: $FTP_PATH path_prefix: $FTP_PATH
always_yes: $ALWAYS_YES
#ssl_verify: false #ssl_verify: false
#port: 21 #port: 21
...@@ -20,14 +21,14 @@ in: ...@@ -20,14 +21,14 @@ in:
chunk_size: $CHUNK chunk_size: $CHUNK
storage: $STORAGE storage: $STORAGE
out: out:
type: wendelin type: wendelin
erp5_url: $ING_URL erp5_url: $ING_URL
tool_dir: $TOOL_DIR tool_dir: $TOOL_DIR
data_set: $DATA_SET data_set: $DATA_SET
erp5_base_url: $DOWN_URL erp5_base_url: $DOWN_URL
exec: exec:
max_threads: 1 max_threads: 1
min_output_tasks: 1 min_output_tasks: 1
...@@ -6,6 +6,7 @@ in: ...@@ -6,6 +6,7 @@ in:
type: http type: http
url: $HTTP_URL url: $HTTP_URL
method: $HTTP_METHOD method: $HTTP_METHOD
always_yes: $ALWAYS_YES
# basic_auth: # basic_auth:
# user: MyUser # user: MyUser
# password: MyPassword # password: MyPassword
...@@ -22,14 +23,14 @@ in: ...@@ -22,14 +23,14 @@ in:
chunk_size: $CHUNK chunk_size: $CHUNK
storage: $STORAGE storage: $STORAGE
out: out:
type: wendelin type: wendelin
erp5_url: $ING_URL erp5_url: $ING_URL
tool_dir: $TOOL_DIR tool_dir: $TOOL_DIR
data_set: $DATA_SET data_set: $DATA_SET
erp5_base_url: $DOWN_URL erp5_base_url: $DOWN_URL
exec: exec:
max_threads: 1 max_threads: 1
min_output_tasks: 1 min_output_tasks: 1
...@@ -9,12 +9,13 @@ in: ...@@ -9,12 +9,13 @@ in:
access_key_id: $S3_ACCESS_KEY access_key_id: $S3_ACCESS_KEY
secret_access_key: $S3_SECRET_KEY secret_access_key: $S3_SECRET_KEY
auth_method: $S3_AUTH_METHOD auth_method: $S3_AUTH_METHOD
# endpoint: always_yes: $ALWAYS_YES
# region: # endpoint:
# path_match_pattern: # region:
# path_match_pattern:
# http_proxy: # http_proxy:
# host: # host:
# port: # port:
# PLEASE LEAVE THE SECTIONS BELOW AS THEY ARE (unless you know what you are doing) # PLEASE LEAVE THE SECTIONS BELOW AS THEY ARE (unless you know what you are doing)
...@@ -26,14 +27,14 @@ in: ...@@ -26,14 +27,14 @@ in:
chunk_size: $CHUNK chunk_size: $CHUNK
storage: $STORAGE storage: $STORAGE
out: out:
type: wendelin type: wendelin
erp5_url: $ING_URL erp5_url: $ING_URL
tool_dir: $TOOL_DIR tool_dir: $TOOL_DIR
data_set: $DATA_SET data_set: $DATA_SET
erp5_base_url: $DOWN_URL erp5_base_url: $DOWN_URL
exec: exec:
max_threads: 1 max_threads: 1
min_output_tasks: 1 min_output_tasks: 1
...@@ -39,5 +39,6 @@ options: ...@@ -39,5 +39,6 @@ options:
-s, --storage <storage> Uses the selected input storage from this set: [http, ftp, s3] -s, --storage <storage> Uses the selected input storage from this set: [http, ftp, s3]
-cs, --custom-storage Allows user to set a new input storage -cs, --custom-storage Allows user to set a new input storage
-a, --advanced Allows to edit the Embulk cofiguration file of the input storage -a, --advanced Allows to edit the Embulk cofiguration file of the input storage
-y, --yes Enables "always yes" mode and ebulk is run assuming yes to all user inputs required
-dc, --discard-changes Discards local changes by checking the remote dataset -dc, --discard-changes Discards local changes by checking the remote dataset
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment