Sha256: 4242686cfe08cc4e06354251e61e1adcfcc70f259d6fca0103e3957e2af1a588

Contents?: true

Size: 310 Bytes

Versions: 5

Compression:

Stored size: 310 Bytes

Contents

module Vagabond
  class CheffileLoader
    
    attr_reader :cookbooks

    def initialize(path=nil)
      @cookbooks = []
      load(path) if path
    end
    
    def cookbook(name, *args)
      cookbooks[name] = args
    end

    def load(path)
      instance_eval(File.read(path))
    end
      
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagabond-0.2.8 lib/vagabond/helpers/cheffile_loader.rb
vagabond-0.2.6 lib/vagabond/helpers/cheffile_loader.rb
vagabond-0.2.4 lib/vagabond/helpers/cheffile_loader.rb
vagabond-0.2.2 lib/vagabond/helpers/cheffile_loader.rb
vagabond-0.2.0 lib/vagabond/helpers/cheffile_loader.rb