summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2011-02-08 21:27:24 -0800
committerLuke Kanies <luke@puppetlabs.com>2011-02-08 21:27:24 -0800
commit3ffb9abd3a500f1fb3246e04f737b79d232c082d (patch)
tree2d76baf7a8043c7ff6cc7d746798de8470108f13 /lib/puppet/interface
parent9cb594f898496e36c76f0717b73897f07e8aca5a (diff)
downloadpuppet-3ffb9abd3a500f1fb3246e04f737b79d232c082d.tar.gz
puppet-3ffb9abd3a500f1fb3246e04f737b79d232c082d.tar.xz
puppet-3ffb9abd3a500f1fb3246e04f737b79d232c082d.zip
Moving 'format' support to the application
This allows easier use of the Interfaces in ruby. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'lib/puppet/interface')
-rw-r--r--lib/puppet/interface/facts.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/interface/facts.rb b/lib/puppet/interface/facts.rb
index 411416710..e40bb56d0 100644
--- a/lib/puppet/interface/facts.rb
+++ b/lib/puppet/interface/facts.rb
@@ -1,6 +1,8 @@
require 'puppet/interface'
class Puppet::Interface::Facts < Puppet::Interface
+ set_default_format :yaml
+
# Upload our facts to the server
action(:upload) do |*args|
Puppet::Node::Facts.indirection.terminus_class = :facter