Class: Bellboy::Versioner
- Inherits:
-
Object
- Object
- Bellboy::Versioner
- Defined in:
- lib/bellboy/versioner.rb
Overview
Process any data bag templates into versioned data bag items
Class Method Summary collapse
Class Method Details
.version(berksfile, options = {}) ⇒ Object
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/bellboy/versioner.rb', line 25 def version(berksfile, = {}) local_sources = Bellboy.berks_sources(berksfile) local_sources.each do |source| Bellboy.logger.debug "Source: #{source.path}" DatabagVersion.process_all([:verbose], "#{source.path}/data_bags") if Dir.exists?("#{source.path}/data_bags") end end |