diff options
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/transaction/change.rb | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/puppet/transaction/change.rb b/lib/puppet/transaction/change.rb index f8e2a7a82..b3aac5a32 100644 --- a/lib/puppet/transaction/change.rb +++ b/lib/puppet/transaction/change.rb @@ -6,15 +6,6 @@ require 'puppet/transaction/event' class Puppet::Transaction::Change attr_accessor :is, :should, :property, :proxy - # Switch the goals of the property, thus running the change in reverse. - def backward - @is, @should = @should, @is - @property.should = @should - - @property.info "Reversing %s" % self - return self.go - end - # Create our event object. def event result = property.event @@ -32,9 +23,7 @@ class Puppet::Transaction::Change @changed = false end - # Perform the actual change. This method can go either forward or - # backward, and produces an event. - def go + def apply return noop_event if noop? property.sync @@ -56,10 +45,6 @@ class Puppet::Transaction::Change result end - def forward - return self.go - end - # Is our property noop? This is used for generating special events. def noop? return @property.noop |