Using the options build when the command-line was parsed, instantiate a new Capistrano configuration, initialize it, and execute the requested actions.
Returns the Configuration instance used, if successful.
# File lib/capistrano/cli/execute.rb, line 23 23: def execute! 24: config = instantiate_configuration(options) 25: config.debug = options[:debug] 26: config.dry_run = options[:dry_run] 27: config.preserve_roles = options[:preserve_roles] 28: config.logger.level = options[:verbose] 29: 30: set_pre_vars(config) 31: load_recipes(config) 32: 33: config.trigger(:load) 34: execute_requested_actions(config) 35: config.trigger(:exit) 36: 37: config 38: rescue Exception => error 39: handle_error(error) 40: end
# File lib/capistrano/cli/execute.rb, line 42 42: def execute_requested_actions(config) 43: Array(options[:vars]).each { |name, value| config.set(name, value) } 44: 45: Array(options[:actions]).each do |action| 46: config.find_and_execute_task(action, :before => :start, :after => :finish) 47: end 48: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.