Class: Automux::Core::Recipe

Inherits:
Base
  • Object
show all
Defined in:
lib/automux/core/recipe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support::CustomAccessors

#dup_attr_reader

Constructor Details

#initialize(path) ⇒ Recipe

Returns a new instance of Recipe.



6
7
8
9
# File 'lib/automux/core/recipe.rb', line 6

def initialize(path)
  @name = File.basename(path, '.sh.erb')
  @path = path
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/automux/core/recipe.rb', line 4

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/automux/core/recipe.rb', line 4

def path
  @path
end