Class: Confer::Recipe::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/confer/recipe.rb

Overview

Internal: Encapsulates a single step in a recipe.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Step

Internal: Initialize a new Step with configuration.

args - An array contaning the configurator name and a Hash containing

the configurator options.


78
79
80
81
# File 'lib/confer/recipe.rb', line 78

def initialize(*args)
  @options      = args.extract_options!
  @configurator = args.first
end

Instance Attribute Details

#configuratorObject (readonly)

Public: A String containing the name of the configurator.



65
66
67
# File 'lib/confer/recipe.rb', line 65

def configurator
  @configurator
end

#optionsObject (readonly)

Public: A Hash containing the configurator options.



70
71
72
# File 'lib/confer/recipe.rb', line 70

def options
  @options
end