Class: Bellboy::Uploader
- Inherits:
-
Object
- Object
- Bellboy::Uploader
- 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, = {}) @bellboyfile = [:bellboyfile] local_sources = Bellboy.berks_sources(berksfile) conn = Bellboy.ridley_connection() local_sources.each do |source| Bellboy.logger.debug "Source: #{source.path}" upload_databags(source, conn) end end |