Class: Pulsar::MainCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Pulsar::MainCommand
- Includes:
- Helpers::Clamp, Options::ConfRepo, Options::Shared
- Defined in:
- lib/pulsar/commands/main.rb
Instance Method Summary collapse
Methods included from Options::ConfRepo
Methods included from Options::Shared
Methods included from Helpers::Clamp
Methods included from Helpers::Path
#capfile_path, #config_app_defaults_path, #config_app_path, #config_app_recipes_path, #config_app_stage_recipes_path, #config_apps_path, #config_base_path, #config_path, #config_stage_path, #reset_capfile_path!
Methods included from Helpers::Shell
Instance Method Details
#execute ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/pulsar/commands/main.rb', line 26 def execute with_clean_env_and_supported_vars do begin create_tmp_dir fetch_repo bundle_install .each do |app| validate(app, stage) create_capfile build_capfile(app, stage) unless skip_cap_run? cap_args = [ tasks_list ].flatten.shelljoin run_capistrano(cap_args) end remove_capfile unless keep_capfile? reset_capfile_path! end ensure remove_capfile unless keep_capfile? remove_repo unless keep_repo? end end end |