diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-08 01:39:39 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-02-08 01:39:39 +0000 |
| commit | 7e07e3dc843798bdbc7a03428ca054adaff2fb72 (patch) | |
| tree | 34d0f9f8c2ee11bdc281e6e4d18cad444253fe36 /lib/puppet.rb | |
| parent | 6d8068eddd0d29ec53f62557eb53f6ebb8e40591 (diff) | |
| download | puppet-7e07e3dc843798bdbc7a03428ca054adaff2fb72.tar.gz puppet-7e07e3dc843798bdbc7a03428ca054adaff2fb72.tar.xz puppet-7e07e3dc843798bdbc7a03428ca054adaff2fb72.zip | |
Moving all of the client and server code into a single network/ directory. In other words, more code structure cleanup.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2179 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet.rb')
| -rw-r--r-- | lib/puppet.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb index f12645357..d6d9840bb 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -210,7 +210,7 @@ module Puppet # Handle restarting. trap(:HUP) do - if client = @services.find { |s| s.is_a? Puppet::Client::MasterClient } and client.running? + if client = @services.find { |s| s.is_a? Puppet::Network::Client::MasterClient } and client.running? client.restart else Puppet.restart @@ -221,7 +221,7 @@ module Puppet trap(:USR1) do done = 0 Puppet.notice "Caught USR1; triggering client run" - @services.find_all { |s| s.is_a? Puppet::Client }.each do |client| + @services.find_all { |s| s.is_a? Puppet::Network::Client }.each do |client| if client.respond_to? :running? if client.running? Puppet.info "Ignoring running %s" % client.class @@ -387,7 +387,7 @@ module Puppet end end -require 'puppet/server' +require 'puppet/network/server' require 'puppet/type' require 'puppet/util/storage' if Puppet[:storeconfigs] |
