Class: Bellboy::Uploader

Inherits:
Object
  • Object
show all
Defined in:
lib/bellboy/uploader.rb

Overview

Push data bags & data bag items to the Chef server

Class Method Summary collapse

Class Method Details

.upload(berksfile, options = {}) ⇒ Object



25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/bellboy/uploader.rb', line 25

def upload(berksfile, options = {})
  @bellboyfile = options[:bellboyfile]

  local_sources = Bellboy.berks_sources(berksfile)
  conn = Bellboy.ridley_connection(options)
 
  local_sources.each do |source|
    Bellboy.logger.debug "Source: #{source.path}"

    upload_databags(source, conn)
  end
end