Sha256: fc8408b3a620e65b545df6c47fec8298b3cb67f6403bc5f6287fb52cac8f4346
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'aws' require 'opsworks/deployment' module OpsWorks module CLI module Subcommands module UpgradeChef # rubocop:disable MethodLength # rubocop:disable CyclomaticComplexity def self.included(thor) thor.class_eval do include Helpers::Keychain include Helpers::Options desc 'upgrade-chef [--stack STACK]', 'Upgrade Chef version' option :stack, type: :array option :version option :manage_berkshelf, type: :boolean, default: false def upgrade_chef fetch_keychain_credentials unless env_credentials? stacks = parse_stacks(options.merge(active: true)) version = OpsWorks::Stack.latest_chef_version stacks.each do |stack| say "Upgrading #{stack.name} to #{version}..." stack.upgrade_chef(version, options) end end end end # rubocop:enable CyclomaticComplexity # rubocop:enable MethodLength end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opsworks-cli-0.2.3 | lib/opsworks/cli/subcommands/upgrade_chef.rb |