class Inception::NextDeployActions

Public Class Methods

new(attributes, cli_options) click to toggle source
# File lib/inception/next_deploy_actions.rb, line 4
def initialize(attributes, cli_options)
  @attributes = attributes.is_a?(Hash) ? ReadWriteSettings.new(attributes) : attributes
  raise "@attributes must be ReadWriteSettings (or Hash)" unless @attributes.is_a?(ReadWriteSettings)
  raise "@cli_options must be Hash" unless cli_options.is_a?(Hash)
  apply_cli_options(cli_options)
end

Public Instance Methods

skip_chef_converge?() click to toggle source
# File lib/inception/next_deploy_actions.rb, line 11
def skip_chef_converge?
  @attributes["no_converge"] || @attributes["no-converge"] || @attributes["skip_chef_converge"]
end

Protected Instance Methods

apply_cli_options(cli_options) click to toggle source
# File lib/inception/next_deploy_actions.rb, line 16
def apply_cli_options(cli_options)
  @attributes.merge(cli_options)
end