summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2010-04-12 14:59:48 -0700
committerLuke Kanies <luke@puppetlabs.com>2010-04-12 14:59:48 -0700
commit232ad8fa316dd8f428bf9bdc56bba742f553efea (patch)
tree3fbbd94647e663c13411138a6656fe9096475bd8 /lib
parent94fddbc8f746a6062f51e1ab5d24febec3c47f64 (diff)
downloadpuppet-232ad8fa316dd8f428bf9bdc56bba742f553efea.tar.gz
puppet-232ad8fa316dd8f428bf9bdc56bba742f553efea.tar.xz
puppet-232ad8fa316dd8f428bf9bdc56bba742f553efea.zip
Removing tests for code that was removed in the REST refactor
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/network/client/resource.rb38
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/puppet/network/client/resource.rb b/lib/puppet/network/client/resource.rb
deleted file mode 100644
index ad3210603..000000000
--- a/lib/puppet/network/client/resource.rb
+++ /dev/null
@@ -1,38 +0,0 @@
-# The client for interacting with remote Puppet agents to query and modify
-# remote system state.
-class Puppet::Network::Client::Resource < Puppet::Network::Client
- def apply(bucket)
- case bucket
- when Puppet::TransObject
- tmp = Puppet::TransBucket.new
- tmp.push bucket
- bucket = tmp
- bucket.name = Facter["hostname"].value
- bucket.type = "resource"
- when Puppet::TransBucket
- # nothing
- else
- raise Puppet::DevError, "You must pass a transportable object, not a %s" %
- bucket.class
- end
-
- unless @local
- bucket = Base64.encode64(YAML::dump(bucket))
- end
- report = @driver.apply(bucket, "yaml")
-
- return report
- end
-
- def describe(type, name, retrieve = false, ignore = false)
- Puppet.info "Describing %s[%s]" % [type.to_s.capitalize, name]
- text = @driver.describe(type, name, retrieve, ignore, "yaml")
- @local ? text : YAML::load(Base64.decode64(text))
- end
-
- def list(type, ignore = false, base = false)
- bucket = @driver.list(type, ignore, base, "yaml")
- @local ? bucket : YAML::load(Base64.decode64(bucket))
- end
-end
-