# File lib/puppet/network/handler/filebucket.rb, line 48 48: def initialize(hash) 49: if hash.include?(:ConflictCheck) 50: @conflictchk = hash[:ConflictCheck] 51: hash.delete(:ConflictCheck) 52: else 53: @conflictchk = false 54: end 55: 56: if hash.include?(:Path) 57: @path = hash[:Path] 58: hash.delete(:Path) 59: else 60: if defined? Puppet 61: @path = Puppet[:bucketdir] 62: else 63: @path = File.expand_path("~/.filebucket") 64: end 65: end 66: 67: Puppet.settings.use(:filebucket) 68: 69: @name = "Filebucket[#{@path}]" 70: end