class Wire::WireCLI
WireCLI
thor command line class
Public Instance Methods
apply_globals()
click to toggle source
# File lib/wire/cli/main_cli.rb, line 20 def apply_globals options[:nocolor] && Rainbow.enabled = false options[:debug] && $log.level = Logger::DEBUG end
down(target_dir = '.')
click to toggle source
# File lib/wire/cli/main_cli.rb, line 123 def down(target_dir = '.') initialize_commands apply_globals @wire_commands.run_down(target_dir) end
init(target_dir = '.')
click to toggle source
# File lib/wire/cli/main_cli.rb, line 40 def init(target_dir = '.') initialize_commands apply_globals @wire_commands.run_init(target_dir) end
initialize_commands()
click to toggle source
pre-build array of available commands
# File lib/wire/cli/main_cli.rb, line 16 def initialize_commands @wire_commands = Wire::WireCommands.new end
spec(target_dir = '.')
click to toggle source
spec method, generate and optionally run serverspec in target_dir
# File lib/wire/cli/main_cli.rb, line 91 def spec(target_dir = '.') initialize_commands apply_globals @wire_commands.run_spec(target_dir, options[:run]) end
up(target_dir = '.')
click to toggle source
# File lib/wire/cli/main_cli.rb, line 107 def up(target_dir = '.') initialize_commands apply_globals @wire_commands.run_up(target_dir) end
validate(target_dir = '.')
click to toggle source
# File lib/wire/cli/main_cli.rb, line 56 def validate(target_dir = '.') initialize_commands apply_globals @wire_commands.run_validate(target_dir) end
verify(target_dir = '.')
click to toggle source
# File lib/wire/cli/main_cli.rb, line 72 def verify(target_dir = '.') initialize_commands apply_globals @wire_commands.run_verify(target_dir) end