diff options
author | Luke Kanies <luke@madstop.com> | 2007-09-20 15:24:20 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2007-09-20 15:24:20 -0500 |
commit | 8212f88ce3ad2ddbc7e1e713111d9478171c42b8 (patch) | |
tree | 5c61cfd3ca2b76d9ab093feeee89c351796667e0 /lib/puppet/indirector/facts/yaml.rb | |
parent | 4cde0344b50084b897792ba4cdd1f62a733d7f53 (diff) | |
download | puppet-8212f88ce3ad2ddbc7e1e713111d9478171c42b8.tar.gz puppet-8212f88ce3ad2ddbc7e1e713111d9478171c42b8.tar.xz puppet-8212f88ce3ad2ddbc7e1e713111d9478171c42b8.zip |
Fixing all existing spec tests so that they now
pass given the redesign that Rick implemented.
This was mostly a question of fixing
the method names and the mocks.
Diffstat (limited to 'lib/puppet/indirector/facts/yaml.rb')
-rw-r--r-- | lib/puppet/indirector/facts/yaml.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/indirector/facts/yaml.rb b/lib/puppet/indirector/facts/yaml.rb index f29ea8ebc..cb02f05c6 100644 --- a/lib/puppet/indirector/facts/yaml.rb +++ b/lib/puppet/indirector/facts/yaml.rb @@ -2,7 +2,7 @@ Puppet::Indirector.register_terminus :facts, :yaml do desc "Store client facts as flat files, serialized using YAML." # Get a client's facts. - def get(node) + def find(node) file = path(node) return nil unless FileTest.exists?(file) @@ -21,7 +21,7 @@ Puppet::Indirector.register_terminus :facts, :yaml do end # Store the facts to disk. - def post(facts) + def save(facts) File.open(path(facts.name), "w", 0600) do |f| begin f.print YAML::dump(facts.values) |