Method: Puppet::Plugins#initialize

Defined in:
lib/vendor/puppet/util/plugins.rb

#initialize(path) ⇒ Plugins

Returns a new instance of Plugins.



70
71
72
73
74
75
76
77
78
79
# File 'lib/vendor/puppet/util/plugins.rb', line 70

def initialize(path)
  @name = @path = path
  class << self
    private
    def define_hooks
      eval File.read(path),nil,path,1
    end
  end
  define_hooks
end