diff options
| author | Luke Kanies <luke@madstop.com> | 2005-07-11 20:21:41 +0000 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2005-07-11 20:21:41 +0000 |
| commit | 0417fb59f4493b98fea9b03a60cb21ffc0f8bed4 (patch) | |
| tree | 8357acb0051cbd471a64e43d0581329dc7875044 /lib | |
| parent | 6e9975ce229f889784f45d5b5c3434db3e0da30a (diff) | |
| download | puppet-0417fb59f4493b98fea9b03a60cb21ffc0f8bed4.tar.gz puppet-0417fb59f4493b98fea9b03a60cb21ffc0f8bed4.tar.xz puppet-0417fb59f4493b98fea9b03a60cb21ffc0f8bed4.zip | |
adding refreshonly parameter
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@358 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
| -rwxr-xr-x | lib/puppet/type/exec.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb index 2ae401cca..e07ad90b5 100755 --- a/lib/puppet/type/exec.rb +++ b/lib/puppet/type/exec.rb @@ -49,7 +49,15 @@ module Puppet self.parent[:command] ) end - self.is = nil + + if self.parent[:refreshonly] + # if refreshonly is enabled, then set things so we + # won't sync + self.is = self.should + else + # else, just set it to something we know it won't be + self.is = nil + end end def sync @@ -115,6 +123,7 @@ module Puppet :path, :user, :cwd, + :refreshonly, :command ] |
