Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ebulk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ebulk
Commits
5775db93
Commit
5775db93
authored
Oct 16, 2020
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always yes mode argument
parent
452e2f8d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
15 deletions
+26
-15
ebulk
ebulk
+4
-0
ebulk-data/config/download-config_template.yml
ebulk-data/config/download-config_template.yml
+1
-0
ebulk-data/config/ingestion-config_template.yml
ebulk-data/config/ingestion-config_template.yml
+3
-2
ebulk-data/config/ingestion-custom-config_template.yml
ebulk-data/config/ingestion-custom-config_template.yml
+3
-2
ebulk-data/config/ingestion-ftp-config_template.yml
ebulk-data/config/ingestion-ftp-config_template.yml
+3
-2
ebulk-data/config/ingestion-http-config_template.yml
ebulk-data/config/ingestion-http-config_template.yml
+3
-2
ebulk-data/config/ingestion-s3-config_template.yml
ebulk-data/config/ingestion-s3-config_template.yml
+8
-7
ebulk-data/help.md
ebulk-data/help.md
+1
-0
No files found.
ebulk
View file @
5775db93
...
@@ -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
;;
;;
...
...
ebulk-data/config/download-config_template.yml
View file @
5775db93
...
@@ -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
...
...
ebulk-data/config/ingestion-config_template.yml
View file @
5775db93
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"
...
...
ebulk-data/config/ingestion-custom-config_template.yml
View file @
5775db93
...
@@ -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
ebulk-data/config/ingestion-ftp-config_template.yml
View file @
5775db93
...
@@ -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
ebulk-data/config/ingestion-http-config_template.yml
View file @
5775db93
...
@@ -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
ebulk-data/config/ingestion-s3-config_template.yml
View file @
5775db93
...
@@ -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
ebulk-data/help.md
View file @
5775db93
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment