From 3ffb9abd3a500f1fb3246e04f737b79d232c082d Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 8 Feb 2011 21:27:24 -0800 Subject: Moving 'format' support to the application This allows easier use of the Interfaces in ruby. Signed-off-by: Luke Kanies --- lib/puppet/interface/facts.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/puppet/interface') 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 -- cgit