Module: Bellboy::BerksfileBellboy

Defined in:
lib/bellboy/mixin/berkshelf.rb

Class Method Summary collapse

Instance Method Summary collapse

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.

Examples:

databags "http://example.com/databags"

Parameters:

  • value (String)

Returns:

  • (Berkshelf::Source)


19
20
21
# File 'lib/bellboy/mixin/berkshelf.rb', line 19

def databags(api_url)
  @databags = Berkshelf::Source.new(api_url)
end

#databags_sourceBerkshelf::Source

Get the ‘Databags’ location which will be used to resolve databag sources.

Returns:

  • (Berkshelf::Source)


26
27
28
# File 'lib/bellboy/mixin/berkshelf.rb', line 26

def databags_source
  @databags
end