summaryrefslogtreecommitdiff
path: root/ext/puppet-test
diff options
context:
space:
mode:
authorErik Dalén <dalen@spotify.com>2014-01-27 15:03:59 +0100
committerErik Dalén <dalen@spotify.com>2014-02-06 14:46:01 +0100
commit39c2fdffa9d6e6ed8ff932cc742c1b71e7b9d051 (patch)
treeb7807857f5e69ccb900ffa35d3d00b22e4a2d327 /ext/puppet-test
parentc87f1fe9c639323202a40c8c2a915ebf1c08971f (diff)
downloadpuppet-39c2fdffa9d6e6ed8ff932cc742c1b71e7b9d051.tar.gz
(maint) Change name from from_pson to from_data_hash
This is because these methods are also used for deserialization from other formats than PSON. The method for serializing a object is called to_data_hash, so makes sense to call this from_data_hash.
Diffstat (limited to 'ext/puppet-test')
-rwxr-xr-xext/puppet-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/puppet-test b/ext/puppet-test
index c2264da8c..2078806e7 100755
--- a/ext/puppet-test
+++ b/ext/puppet-test
@@ -241,7 +241,7 @@ Suite.new :resource_type, "Managing resource types" do
ARGV.each do |name|
json = Puppet::Resource::Type.find(name).to_pson
data = PSON.parse(json)
- p Puppet::Resource::Type.from_pson(data)
+ p Puppet::Resource::Type.from_data_hash(data)
end
end