module Bellboy::BerksfileBellboy

Public Class Methods

included(base) click to toggle source
# 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

Public Instance Methods

databags(api_url) click to toggle source

Add a ‘Databags’ default location which will be used to resolve databag sources.

@example

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

@param [String] value

@return [Berkshelf::Source]

# File lib/bellboy/mixin/berkshelf.rb, line 19
def databags(api_url)
  @databags = Berkshelf::Source.new(api_url)
end
databags_source() click to toggle source

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

@return [Berkshelf::Source]

# File lib/bellboy/mixin/berkshelf.rb, line 26
def databags_source
  @databags
end