From 0417fb59f4493b98fea9b03a60cb21ffc0f8bed4 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 11 Jul 2005 20:21:41 +0000 Subject: adding refreshonly parameter git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@358 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/type/exec.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib') 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 ] -- cgit