summaryrefslogtreecommitdiffstats
path: root/lib/puppet/client.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-14 06:21:03 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-14 06:21:03 +0000
commit12452ee9ca294563f2e2724ff36f179004f9846f (patch)
treebee6053e8164f4a8dbf214f1898fafecb1d61f2f /lib/puppet/client.rb
parent4d6120a1f77cfe76fafbe32caa5d853449562376 (diff)
Merging r1468 from the implementations branch with r1438 from when the branch was first created.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1469 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/client.rb')
-rw-r--r--lib/puppet/client.rb21
1 files changed, 18 insertions, 3 deletions
diff --git a/lib/puppet/client.rb b/lib/puppet/client.rb
index 9ee0d55d8..cf522a994 100644
--- a/lib/puppet/client.rb
+++ b/lib/puppet/client.rb
@@ -26,9 +26,15 @@ module Puppet
def initcerts
unless self.readcert
- unless self.requestcert
- return nil
- end
+ #if self.is_a? Puppet::Client::CA
+ unless self.requestcert
+ return nil
+ end
+ #else
+ # return nil
+ #end
+ #unless self.requestcert
+ #end
end
# unless we have a driver, we're a local client and we can't add
@@ -95,6 +101,15 @@ module Puppet
end
end
+ # Are we a local client?
+ def local?
+ if defined? @local and @local
+ true
+ else
+ false
+ end
+ end
+
# A wrapper method to run and then store the last run time
def runnow
if self.stopping