Class: Ey::Core::Cli::Recipes::Apply
- Inherits:
-
Subcommand
- Object
- Belafonte::App
- Subcommand
- Ey::Core::Cli::Recipes::Apply
- Includes:
- Helpers::Chef
- Defined in:
- lib/ey-core/cli/recipes/apply.rb
Instance Method Summary collapse
Methods included from Helpers::Chef
Methods inherited from Subcommand
#handle_core_error, #run_handle, #setup
Methods included from Helpers::Core
#core_account, #core_accounts, #core_application_for, #core_applications, #core_client, #core_environment_for, #core_environment_variables, #core_environments, #core_operator_and_environment_for, #core_server_for, #core_url, #core_yaml, #eyrc_yaml, included, #longest_length_by_name, #operator, #unauthenticated_core_client, #write_core_yaml
Instance Method Details
#handle ⇒ Object
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/ey-core/cli/recipes/apply.rb', line 44 def handle operator, environment = core_operator_and_environment_for() raise "Unable to find matching environment" unless environment opts = {} opts[:no_wait] = switch_active?(:no_wait) opts[:verbose] = switch_active?(:verbose) opts[:watch] = option(:watch) run_chef(run_type, environment, opts) end |