diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-02 16:39:29 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-02 16:39:29 +0000 |
commit | 0d01770499d94c0d0140449569efe9126d97ea86 (patch) | |
tree | 7e66aea10c46f77f5f63257cbfec7d66dc046f41 | |
parent | 747c3f6b75f86177132ee277dd619b42bbc53513 (diff) | |
download | puppet-0d01770499d94c0d0140449569efe9126d97ea86.tar.gz puppet-0d01770499d94c0d0140449569efe9126d97ea86.tar.xz puppet-0d01770499d94c0d0140449569efe9126d97ea86.zip |
cleaning up obviated methods
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@621 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-x | lib/puppet/type/symlink.rb | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/lib/puppet/type/symlink.rb b/lib/puppet/type/symlink.rb index dca8f36ef..0dcbc244a 100755 --- a/lib/puppet/type/symlink.rb +++ b/lib/puppet/type/symlink.rb @@ -118,70 +118,6 @@ module Puppet super end - def newchild(path, hash = {}) - if path =~ %r{^#{File::SEPARATOR}} - raise Puppet::DevError.new( - "Must pass relative paths to Symlink#newchild()" - ) - else - path = File.join(self.name, path) - end - - args = @arghash.dup - - args[:path] = path - - unless hash.include?(:recurse) - if args.include?(:recurse) - if args[:recurse].is_a?(Integer) - Puppet.notice "Decrementing recurse on %s" % path - args[:recurse] -= 1 # reduce the level of recursion - end - end - - end - - hash.each { |key,value| - args[key] = value - } - - child = nil - if child = self.class[path] - #raise "Ruh-roh" - args.each { |var,value| - next if var == :path - next if var == :name - child[var] = value - } - else # create it anew - #notice "Creating new file with args %s" % args.inspect - begin - child = self.class.new(args) - rescue Puppet::Error => detail - Puppet.notice( - "Cannot manage %s: %s" % - [path,detail.message] - ) - Puppet.debug args.inspect - child = nil - rescue => detail - Puppet.notice( - "Cannot manage %s: %s" % - [path,detail] - ) - Puppet.debug args.inspect - child = nil - end - end - if child - child.parent = self - end - return child - end - - def newsource(source) - end - def paramrecurse=(value) @stat = nil @target = self.state(:target).should |