45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# File 'lib/vendor/puppet/property/ensure.rb', line 45
def change_to_s(currentvalue, newvalue)
begin
if currentvalue == :absent or currentvalue.nil?
return "created"
elsif newvalue == :absent
return "removed"
else
return "#{self.name} changed '#{self.is_to_s(currentvalue)}' to '#{self.should_to_s(newvalue)}'"
end
rescue Puppet::Error, Puppet::DevError
raise
rescue => detail
raise Puppet::DevError, "Could not convert change #{self.name} to string: #{detail}"
end
end
|