Class: Inception::NextDeployActions

Inherits:
Object
  • Object
show all
Defined in:
lib/inception/next_deploy_actions.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes, cli_options) ⇒ NextDeployActions

Returns a new instance of NextDeployActions.


4
5
6
7
8
9
# 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

Instance Method Details

#skip_chef_converge?Boolean

Returns:

  • (Boolean)

11
12
13
# File 'lib/inception/next_deploy_actions.rb', line 11

def skip_chef_converge?
  @attributes["no_converge"] || @attributes["no-converge"] || @attributes["skip_chef_converge"]
end