Class: Pulsar::ListCommand

Inherits:
UtilsCommand show all
Includes:
Options::ConfRepo
Defined in:
lib/pulsar/commands/list.rb

Instance Method Summary collapse

Methods included from Options::ConfRepo

included, #parse

Methods included from Options::Shared

included

Methods included from Helpers::Clamp

included

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

Methods included from Helpers::Shell

#cd, #rm_rf, #run_cmd, #touch

Instance Method Details

#executeObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/pulsar/commands/list.rb', line 5

def execute
  Bundler.with_clean_env do
    begin
      fetch_repo

      list_apps
    ensure
      remove_capfile unless keep_capfile?
      remove_repo unless keep_repo?
    end
  end
end