Class: Gordon::Recipe

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Recipe

Returns a new instance of Recipe.



5
6
7
8
# File 'lib/gordon/recipe.rb', line 5

def initialize(options)
  @options = options
  @application = Application::Factory.create(options)
end

Instance Attribute Details

#applicationObject (readonly)

Returns the value of attribute application.



3
4
5
# File 'lib/gordon/recipe.rb', line 3

def application
  @application
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/gordon/recipe.rb', line 3

def options
  @options
end

Instance Method Details

#application_template_pathObject



10
11
12
# File 'lib/gordon/recipe.rb', line 10

def application_template_path
  application.get_template_path
end