diff options
| author | Luke Kanies <luke@madstop.com> | 2009-01-19 17:25:50 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2009-02-06 18:08:40 -0600 |
| commit | 37692e5851dd3f7b15bde1caf785fb7801c97a25 (patch) | |
| tree | 6db0d82fc4509805c8af4a3d2f34fafd708b39e7 /lib | |
| parent | 15d8768c5050a0c409b88fcabe38e05f30ee9a78 (diff) | |
| download | puppet-37692e5851dd3f7b15bde1caf785fb7801c97a25.tar.gz puppet-37692e5851dd3f7b15bde1caf785fb7801c97a25.tar.xz puppet-37692e5851dd3f7b15bde1caf785fb7801c97a25.zip | |
Renmaing Puppet::Network::Client::Master to Puppet::Agent
Made minor changes, including removing the parent class.
The functionality hasn't changed yet -- that comes in later patches --
but all but a couple of the older tests pass.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/agent.rb (renamed from lib/puppet/network/client/master.rb) | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/agent.rb index 047f2b82a..f6d96acc2 100644 --- a/lib/puppet/network/client/master.rb +++ b/lib/puppet/agent.rb @@ -2,8 +2,12 @@ require 'sync' require 'timeout' require 'puppet/network/http_pool' +require 'puppet/util' + +class Puppet::Agent + # For benchmarking + include Puppet::Util -class Puppet::Network::Client::Master < Puppet::Network::Client unless defined? @@sync @@sync = Sync.new end @@ -136,7 +140,7 @@ class Puppet::Network::Client::Master < Puppet::Network::Client facts = self.class.facts end - raise Puppet::Network::ClientError.new("Could not retrieve any facts") unless facts.length > 0 + raise Puppet::Error.new("Could not retrieve any facts") unless facts.length > 0 Puppet.debug("Retrieving catalog") @@ -192,9 +196,8 @@ class Puppet::Network::Client::Master < Puppet::Network::Client end # Just so we can specify that we are "the" instance. - def initialize(*args) + def initialize Puppet.settings.use(:main, :ssl, :puppetd) - super self.class.instance = self @running = false |
