Module: OpsWorks::CLI::Subcommands::Update
- Included in:
- Agent
- Defined in:
- lib/opsworks/cli/subcommands/update.rb
Class Method Summary collapse
-
.included(thor) ⇒ Object
rubocop:disable MethodLength rubocop:disable CyclomaticComplexity.
Class Method Details
.included(thor) ⇒ Object
rubocop:disable MethodLength rubocop:disable CyclomaticComplexity
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/opsworks/cli/subcommands/update.rb', line 9 def self.included(thor) thor.class_eval do include Helpers::Keychain include Helpers::Options desc 'update [--stack STACK]', 'Update OpsWorks custom cookbooks' option :stack def update fetch_keychain_credentials unless env_credentials? stacks = parse_stacks() stacks.each do |stack| say "Updating #{stack.name}..." stack.update_custom_cookbooks end end end end |