summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/handler
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-12-17 18:10:30 -0600
committerLuke Kanies <luke@madstop.com>2008-12-18 11:10:25 -0600
commitb6db54585177f277b1e06bebd4d925d5c272b610 (patch)
treead09cf88c2bd2293bee9a33d88df21734e57b8c3 /lib/puppet/network/handler
parent89c25ad0661fbc1d57830f4648a3b108f4347278 (diff)
downloadpuppet-b6db54585177f277b1e06bebd4d925d5c272b610.tar.gz
puppet-b6db54585177f277b1e06bebd4d925d5c272b610.tar.xz
puppet-b6db54585177f277b1e06bebd4d925d5c272b610.zip
Deprecating 'Puppet.type'; replacing all instances with Puppet::Type.type
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/network/handler')
-rwxr-xr-xlib/puppet/network/handler/fileserver.rb2
-rwxr-xr-xlib/puppet/network/handler/resource.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/network/handler/fileserver.rb b/lib/puppet/network/handler/fileserver.rb
index 160dab1bb..d50ba7eea 100755
--- a/lib/puppet/network/handler/fileserver.rb
+++ b/lib/puppet/network/handler/fileserver.rb
@@ -512,7 +512,7 @@ class Puppet::Network::Handler
# the effort.
obj[:check] = CHECKPARAMS
else
- obj = Puppet.type(:file).create(
+ obj = Puppet::Type.type(:file).create(
:name => file_path(path, client),
:check => CHECKPARAMS
)
diff --git a/lib/puppet/network/handler/resource.rb b/lib/puppet/network/handler/resource.rb
index 7ec27b4dc..e7ecbbdf2 100755
--- a/lib/puppet/network/handler/resource.rb
+++ b/lib/puppet/network/handler/resource.rb
@@ -59,7 +59,7 @@ class Puppet::Network::Handler
Puppet.info "Describing %s[%s]" % [type.to_s.capitalize, name]
@local = true unless client
typeklass = nil
- unless typeklass = Puppet.type(type)
+ unless typeklass = Puppet::Type.type(type)
raise Puppet::Error, "Puppet type %s is unsupported" % type
end
@@ -124,7 +124,7 @@ class Puppet::Network::Handler
def list(type, ignore = [], base = nil, format = "yaml", client = nil, clientip = nil)
@local = true unless client
typeklass = nil
- unless typeklass = Puppet.type(type)
+ unless typeklass = Puppet::Type.type(type)
raise Puppet::Error, "Puppet type %s is unsupported" % type
end