summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/handler.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-08-22 18:03:55 -0500
committerLuke Kanies <luke@madstop.com>2007-08-22 18:03:55 -0500
commit0682d7e473cfd8f2fe6bee9eae0868b846fd0d50 (patch)
treefb66cc4c81e95ee42905410310095b9a8ae23ecc /lib/puppet/network/handler.rb
parentec50484518425ec8ac36f89b087beb27d5a3d2c8 (diff)
parent8b3361afae35cfb65754d7bd9aff5b820ed714f0 (diff)
downloadpuppet-0682d7e473cfd8f2fe6bee9eae0868b846fd0d50.tar.gz
puppet-0682d7e473cfd8f2fe6bee9eae0868b846fd0d50.tar.xz
puppet-0682d7e473cfd8f2fe6bee9eae0868b846fd0d50.zip
Merge branch 'multi_env'
Diffstat (limited to 'lib/puppet/network/handler.rb')
-rw-r--r--lib/puppet/network/handler.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/network/handler.rb b/lib/puppet/network/handler.rb
index 33343e4fe..c2fbfcba5 100644
--- a/lib/puppet/network/handler.rb
+++ b/lib/puppet/network/handler.rb
@@ -10,7 +10,7 @@ module Puppet::Network
# This is so that the handlers can subclass just 'Handler', rather
# then having to specify the full class path.
Handler = self
- attr_accessor :server
+ attr_accessor :server, :local
extend Puppet::Util::SubclassLoader
extend Puppet::Util
@@ -44,6 +44,10 @@ module Puppet::Network
# Create an empty init method with the same signature.
def initialize(hash = {})
end
+
+ def local?
+ self.local
+ end
end
end