lib/rundock/cli.rb in rundock-0.2.8 vs lib/rundock/cli.rb in rundock-0.2.9

- old
+ new

@@ -26,10 +26,11 @@ 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 :run_anyway, type: :boolean, 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] } Runner.run(opts.merge(options.deep_symbolize_keys)) @@ -45,9 +46,10 @@ 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 :dry_run, type: :boolean, aliases: ['-n'] def ssh opts = {} Runner.run(opts.merge(options.deep_symbolize_keys)) end