class Bow::InventoryExample
Constants
- RAKEFILE_EXAMPLE
- TARGETING_EXAMPLE
Public Instance Methods
init()
click to toggle source
# File lib/bow/inventory_example.rb, line 53 def init raise 'Can not init. Directory not empty!' unless Dir.empty?(Dir.pwd) { 'Rakefile' => RAKEFILE_EXAMPLE, 'targets.json' => JSON.pretty_generate(TARGETING_EXAMPLE) }.each do |targ, code| f = File.open(targ, 'w') f.write(code) f.close end end