# File lib/puppet/file_bucket/dipper.rb, line 12
12:   def initialize(hash = {})
13:     # Emulate the XMLRPC client
14:     server      = hash[:Server]
15:     port        = hash[:Port] || Puppet[:masterport]
16:     environment = Puppet[:environment]
17: 
18:     if hash.include?(:Path)
19:       @local_path = hash[:Path]
20:       @rest_path  = nil
21:     else
22:       @local_path = nil
23:       @rest_path = "https://#{server}:#{port}/#{environment}/file_bucket_file/"
24:     end
25:   end