Module: Bellboy::BerksfileBellboy
- Defined in:
- lib/bellboy/mixin/berkshelf.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#databags(api_url) ⇒ Berkshelf::Source
Add a ‘Databags’ default location which will be used to resolve databag sources.
-
#databags_source ⇒ Berkshelf::Source
Get the ‘Databags’ location which will be used to resolve databag sources.
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/bellboy/mixin/berkshelf.rb', line 4 def self.included(base) base.class_eval do expose_method :databags expose_method :databags_source end end |
Instance Method Details
#databags(api_url) ⇒ Berkshelf::Source
Add a ‘Databags’ default location which will be used to resolve databag sources.
19 20 21 |
# File 'lib/bellboy/mixin/berkshelf.rb', line 19 def databags(api_url) @databags = Berkshelf::Source.new(api_url) end |
#databags_source ⇒ Berkshelf::Source
Get the ‘Databags’ location which will be used to resolve databag sources.
26 27 28 |
# File 'lib/bellboy/mixin/berkshelf.rb', line 26 def databags_source @databags end |