Class: FPM::Cookery::Recipe
- Inherits:
-
BaseRecipe
- Object
- BaseRecipe
- FPM::Cookery::Recipe
- Extended by:
- Forwardable
- Defined in:
- lib/fpm/cookery/recipe.rb
Instance Attribute Summary collapse
-
#source_handler ⇒ Object
readonly
Returns the value of attribute source_handler.
Attributes inherited from BaseRecipe
Attributes included from PathHelper
#installing, #omnibus_installing
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filename) ⇒ Recipe
constructor
A new instance of Recipe.
- #input(config) ⇒ Object
- #source ⇒ Object
Methods inherited from BaseRecipe
architectures, attr_rw, attr_rw_list, #builddir, #builddir=, #cachedir, #cachedir=, depends_all, #depends_all, #destdir, #destdir=, #pkgdir, #pkgdir=, platform, platforms, #workdir, #workdir=
Methods included from PathHelper
#bin, #doc, #etc, #include, #info, #installing?, #lib, #libexec, #man, #man1, #man2, #man3, #man4, #man5, #man6, #man7, #man8, #omnibus_installing?, #opt, #prefix, #root, #sbin, #share, #var, #with_trueprefix
Constructor Details
#initialize(filename) ⇒ Recipe
Returns a new instance of Recipe.
119 120 121 122 |
# File 'lib/fpm/cookery/recipe.rb', line 119 def initialize(filename) super(filename) @source_handler = SourceHandler.new(Source.new(source, spec), cachedir, builddir) end |
Instance Attribute Details
#source_handler ⇒ Object (readonly)
Returns the value of attribute source_handler.
137 138 139 |
# File 'lib/fpm/cookery/recipe.rb', line 137 def source_handler @source_handler end |
Class Method Details
.source(source = nil, spec = {}) ⇒ Object
125 126 127 128 129 |
# File 'lib/fpm/cookery/recipe.rb', line 125 def source(source = nil, spec = {}) return @source if source.nil? @source = source @spec = spec end |
.url ⇒ Object
130 131 132 133 134 |
# File 'lib/fpm/cookery/recipe.rb', line 130 def source(source = nil, spec = {}) return @source if source.nil? @source = source @spec = spec end |