Class: StackFu::Commands::DeployCommand

Inherits:
Command
  • Object
show all
Includes:
ApiHooks
Defined in:
lib/stackfu/commands/deploy_command.rb

Constant Summary

Constants included from Rendering

Rendering::LEFT_MARGIN

Constants included from OperatingSystems

OperatingSystems::FriendlyNames, OperatingSystems::OperatingSystems

Instance Attribute Summary

Attributes inherited from Command

#errors, #options, #parameters, #subcommand

Instance Method Summary collapse

Methods included from ApiHooks

#initialize_api

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

#convert_os, #os_name

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, options)
  execute "script", parameters, options, false do |target|
    puts "*** Preparing: #{target.name.foreground(:yellow).bright}"
    puts "    #{target.description}"
    puts ""
  end
end