Revision df47dd3c
Added by Thomas McKay over 8 years ago
lib/hammer_cli_csv/import.rb | ||
---|---|---|
24 | 24 |
desc 'import by directory' |
25 | 25 |
|
26 | 26 |
option %w(-v --verbose), :flag, 'be verbose' |
27 |
option %w(--threads), 'THREAD_COUNT', 'Number of threads to hammer with', :default => 1 |
|
27 | 28 |
option %w(--server), 'SERVER', 'Server URL' |
28 | 29 |
option %w(-u --username), 'USERNAME', 'Username to access server' |
29 | 30 |
option %w(-p --password), 'PASSWORD', 'Password to access server' |
... | ... | |
75 | 76 |
|
76 | 77 |
args = %W( csv #{resource.sub('_', '-')} --csv-file #{options_file} ) |
77 | 78 |
args << '-v' if option_verbose? |
79 |
args += %W( --threads #{option_threads} ) |
|
78 | 80 |
hammer.run(args) |
79 | 81 |
end |
80 | 82 |
end |
Also available in: Unified diff
corrected threading
reports updated
removed debug