Class: StackFu::Commands::DeployCommand
- Includes:
- ApiHooks
- Defined in:
- lib/stackfu/commands/deploy_command.rb
Constant Summary
Constants included from Rendering
Constants included from OperatingSystems
OperatingSystems::FriendlyNames, OperatingSystems::OperatingSystems
Instance Attribute Summary
Attributes inherited from Command
#errors, #options, #parameters, #subcommand
Instance Method Summary collapse
-
#default(parameters, options) ⇒ Object
error_messages :missing_subcommand => “You have to tell what you want to deploy and to which server.” subcommand :script, :required_parameters => [:plugin_name, :server].
Methods included from ApiHooks
Methods inherited from Command
#command, command_for, create, inherited, #initialize, #params?, #run, #valid?
Methods included from Rendering
#done, #error, #fill_values_from_options, #menu_for, #render_target, #spinner, #table, #warning
Methods included from OperatingSystems
Constructor Details
This class inherits a constructor from StackFu::Commands::Command
Instance Method Details
#default(parameters, options) ⇒ Object
error_messages :missing_subcommand => “You have to tell what you want to deploy and to which server.” subcommand :script, :required_parameters => [:plugin_name, :server]
9 10 11 12 13 14 15 |
# File 'lib/stackfu/commands/deploy_command.rb', line 9 def default(parameters, ) execute "script", parameters, , false do |target| puts "*** Preparing: #{target.name.foreground(:yellow).bright}" puts " #{target.description}" puts "" end end |