Method: Puppet::FileServing::Base#initialize

Defined in:
lib/vendor/puppet/file_serving/base.rb

#initialize(path, options = {}) ⇒ Base

Returns a new instance of Base.



28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/vendor/puppet/file_serving/base.rb', line 28

def initialize(path, options = {})
  self.path = path
  @links = :manage

  options.each do |param, value|
    begin
      send param.to_s + "=", value
    rescue NoMethodError
      raise ArgumentError, "Invalid option #{param} for #{self.class}"
    end
  end
end