Class: InfraCommand
- Inherits:
-
PangeaCommand
- Object
- PangeaCommand
- InfraCommand
- Includes:
- Constants
- Defined in:
- lib/pangea/cli/subcommands/infra.rb
Constant Summary collapse
- NAME =
:infra
Constants included from Constants
Constants::ARTIFACT_FILE, Constants::CACHE_DIR, Constants::EXTENSIONS, Constants::PROJECT_SRC_DIRS, Constants::PROJECT_VERSION
Instance Method Summary collapse
Instance Method Details
#run(argv) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/pangea/cli/subcommands/infra.rb', line 31 def run(argv) parse(argv) # grab a config synth cfg_synth = Config.resolve_configurations # reject empty configurations if cfg_synth.empty? Say.terminal %(configuration empty, exiting...) exit end # preflight checks for the command execution check_run check_target(params[:target], cfg_synth) targets = params[:target].split('.').map(&:to_sym) process_target(targets, cfg_synth) # provide some kind of default exit of the command execution exit end |