Sha256: da84d2a664dc6cdc19253214bfd9d13a554dd8f3fe95511be3b353b9710203ba
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
require 'ey-core/cli/subcommand' require 'ey-core/cli/helpers/chef' module Ey module Core module Cli module Recipes class Apply < Subcommand include Helpers::Chef title "apply" summary "Apply changes to an environment" option :account, short: "c", long: "account", description: "Name or id of account", argument: "account" option :environment, short: "e", long: "environment", description: "Name or id of environment", argument: "environment" switch :quick, short: "q", long: "quick", description: "Quick chef run (if not specified, will run main chef run)" def handle operator, environment = core_operator_and_environment_for(options) raise "Unable to find matching environment" unless environment run_chef(run_type, environment) end private def run_type (switch_active?(:quick) && "quick") || "main" end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ey-core-3.1.9 | lib/ey-core/cli/recipes/apply.rb |