Class: Inception::NextDeployActions
- Inherits:
-
Object
- Object
- Inception::NextDeployActions
- Defined in:
- lib/inception/next_deploy_actions.rb
Instance Method Summary collapse
-
#initialize(attributes, cli_options) ⇒ NextDeployActions
constructor
A new instance of NextDeployActions.
- #skip_chef_converge? ⇒ Boolean
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, ) @attributes = attributes.is_a?(Hash) ? Settingslogic.new(attributes) : attributes raise "@attributes must be Settingslogic (or Hash)" unless @attributes.is_a?(Settingslogic) raise "@cli_options must be Hash" unless .is_a?(Hash) () end |
Instance Method Details
#skip_chef_converge? ⇒ 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 |