Sha256: ec05f5998b02f3c8a2e71d4f7b7234db336f77ae12e9e8fc01dcab55159be3f1
Contents?: true
Size: 1008 Bytes
Versions: 1
Compression:
Stored size: 1008 Bytes
Contents
require 'aws' require 'opsworks/stack' module OpsWorks module CLI module Subcommands module UpgradeChef # rubocop:disable MethodLength # rubocop:disable CyclomaticComplexity def self.included(thor) thor.class_eval do 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_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.3.5 | lib/opsworks/cli/subcommands/upgrade_chef.rb |