diff options
author | Luke Kanies <luke@reductivelabs.com> | 2010-01-19 15:45:27 -0800 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | c30494f15ccaf1c1f15a9fde8b5a46a9adc4894a (patch) | |
tree | b4e0b65e443ee15a5c46b544006eebbf9727f206 /lib/puppet | |
parent | 8d5f052b08078f0f356b30fb3fed60eab4490f6d (diff) | |
download | puppet-c30494f15ccaf1c1f15a9fde8b5a46a9adc4894a.tar.gz puppet-c30494f15ccaf1c1f15a9fde8b5a46a9adc4894a.tar.xz puppet-c30494f15ccaf1c1f15a9fde8b5a46a9adc4894a.zip |
Renaming some methods in Transaction::Change
Renaming 'go' to 'apply', which is a much more
reasonable name.
Also removing the 'backward' and 'forward' methods,
since they're not actually used anywhere. (Well,
'forward' was used, but it just called 'go'.)
Signed-off-by: Luke Kanies <luke@reductivelabs.com>
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 |