class Rundock::CLI
Constants
- DEFAULT_HOSTGROUP_FILE_PATH
- DEFAULT_SCENARIO_FILE_PATH
- DEFAULT_SSH_OPTIONS_DEFAULT_FILE_PATH
Public Class Methods
new(args, opts, config)
click to toggle source
Calls superclass method
# File lib/rundock/cli.rb, line 17 def initialize(args, opts, config) super(args, opts, config) Rundock::Logger.level = ::Logger.const_get(options[:log_level].upcase) Rundock::Logger.formatter.colored = options[:color] Rundock::Logger.formatter.show_header = options[:header] Rundock::Logger.formatter.short_header = options[:short_header] Rundock::Logger.formatter.date_header = options[:date_header] Rundock::Logger.formatter.suppress_logging = options[:suppress_logging] end
Public Instance Methods
configure()
click to toggle source
# File lib/rundock/cli.rb, line 74 def configure opts = {} Configure.start(opts.merge(options.deep_symbolize_keys)) end
do(*scenario_file_path)
click to toggle source
# File lib/rundock/cli.rb, line 42 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)) end
method_missing(command, *args)
click to toggle source
# File lib/rundock/cli.rb, line 80 def method_missing(command, *args) help end
ssh()
click to toggle source
# File lib/rundock/cli.rb, line 65 def ssh opts = {} Runner.run(opts.merge(options.deep_symbolize_keys)) end
version()
click to toggle source
# File lib/rundock/cli.rb, line 29 def version puts Rundock::VERSION.to_s end