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, config) ⇒ 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=, fpm_attributes, #fpm_attributes, inherited, #pkgdir, #pkgdir=, platform, platforms, #tmp_root, #tmp_root=, #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, config) ⇒ Recipe
Returns a new instance of Recipe.
146 147 148 149 |
# File 'lib/fpm/cookery/recipe.rb', line 146 def initialize(filename, config) super(filename, config) @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.
164 165 166 |
# File 'lib/fpm/cookery/recipe.rb', line 164 def source_handler @source_handler end |
Class Method Details
.source(source = nil, spec = {}) ⇒ Object
152 153 154 155 156 |
# File 'lib/fpm/cookery/recipe.rb', line 152 def source(source = nil, spec = {}) return @source if source.nil? @source = source @spec = spec end |
.url ⇒ Object
157 158 159 160 161 |
# File 'lib/fpm/cookery/recipe.rb', line 157 def source(source = nil, spec = {}) return @source if source.nil? @source = source @spec = spec end |