lib/rundock/cli.rb in rundock-1.1.5 vs lib/rundock/cli.rb in rundock-1.1.6

- old
+ new

@@ -30,13 +30,14 @@ desc 'do [SCENARIO] [options]', 'Run rundock from scenario file' option :sudo, type: :boolean, default: false option :default_ssh_opts, type: :string, aliases: ['-d'], default: DEFAULT_SSH_OPTIONS_DEFAULT_FILE_PATH option :targetgroup, type: :string, aliases: ['-g'] - option :tasks, type: :string, aliases: ['-t'] + option :tasks, type: :string, aliases: ['-t'], banner: 'You can specify comma separated task file paths.[ex: task_file1,task_file2,..]' + option :filtered_tasks, type: :string, aliases: ['-T'], banner: 'You can specify comma separated tasks.[ex: task1,task2,..]' option :hooks, type: :string, aliases: ['-k'] - option :run_anyway, type: :boolean, default: false + option :run_anyway, type: :boolean, aliases: ['-r'], default: false option :dry_run, type: :boolean, aliases: ['-n'] def do(*scenario_file_path) scenario_file_path = [DEFAULT_SCENARIO_FILE_PATH] if scenario_file_path.empty? opts = { :scenario => scenario_file_path[0] } @@ -44,20 +45,21 @@ end desc 'ssh [options]', 'Run rundock ssh with various options' option :command, type: :string, aliases: ['-c'] option :default_ssh_opts, type: :string, aliases: ['-d'], default: DEFAULT_SSH_OPTIONS_DEFAULT_FILE_PATH - option :tasks, type: :string, aliases: ['-t'] + option :tasks, type: :string, aliases: ['-t'], banner: 'You can specify comma separated task file paths.[ex: task_file1,task_file2,..]' + option :filtered_tasks, type: :string, aliases: ['-T'], banner: 'You can specify comma separated tasks.[ex: task1,task2,..]' option :hooks, type: :string, aliases: ['-k'] option :host, type: :string, aliases: ['-h'], banner: 'You can specify comma separated hosts.[ex: host1,host2,..]' option :targetgroup, type: :string, aliases: ['-g'] option :user, type: :string, aliases: ['-u'] option :key, type: :string, aliases: ['-i'] option :port, type: :numeric, aliases: ['-p'] option :ssh_config, type: :string, aliases: ['-F'] option :ask_password, type: :boolean, default: false option :sudo, type: :boolean, default: false - option :run_anyway, type: :boolean, default: false + option :run_anyway, type: :boolean, aliases: ['-r'], default: false option :dry_run, type: :boolean, aliases: ['-n'] def ssh opts = {} Runner.run(opts.merge(options.deep_symbolize_keys))