require 'chef/mash' require 'chef/json_compat' class Lxc class Knife class Config attr_reader :base_path attr_reader :store def initialize(args={}) def initialize(path='/etc/knife-lxc/config.json') if(File.exists?(path)) @base_path = path @store = Chef::JSONCompat.from_json(File.read(path)) else raise ArgumentError.new("Provided path is not valid: #{path}") end end def [](k) @store[k] end def def used_addresses end def available_addresses end end end end