Sha256: 587a658c866e786349c4b5c231ef5db147c68646680d09502b8238f67b12b947

Contents?: true

Size: 644 Bytes

Versions: 6

Compression:

Stored size: 644 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
elecksee-1.0.22 lib/elecksee/knife/config.rb
elecksee-1.0.20 lib/elecksee/knife/config.rb
elecksee-1.0.18 lib/elecksee/knife/config.rb
elecksee-1.0.16 lib/elecksee/knife/config.rb
elecksee-1.0.14 lib/elecksee/knife/config.rb
elecksee-1.0.12 lib/elecksee/knife/config.rb