[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Luke Kanies luke at puppetlabs.com
Tue May 10 08:05:35 UTC 2011


The following commit has been merged in the experimental branch:
commit ece0c8e8defeec7af5aa28bb583bbb69aaba79a9
Author: Luke Kanies <luke at puppetlabs.com>
Date:   Wed Mar 2 17:32:07 2011 -0800

    Fixing #16 - nodes default to yaml
    
    We don't have json support for node output yet.
    
    Signed-off-by: Luke Kanies <luke at puppetlabs.com>

diff --git a/lib/puppet/interface/node.rb b/lib/puppet/interface/node.rb
index 7d7362d..0a0f57a 100644
--- a/lib/puppet/interface/node.rb
+++ b/lib/puppet/interface/node.rb
@@ -1,4 +1,5 @@
 require 'puppet/interface/indirector'
 
 Puppet::Interface::Indirector.new(:node) do
+  set_default_format :yaml
 end
diff --git a/spec/unit/interface/node_spec.rb b/spec/unit/interface/node_spec.rb
index afb609d..6310930 100644
--- a/spec/unit/interface/node_spec.rb
+++ b/spec/unit/interface/node_spec.rb
@@ -12,6 +12,10 @@ describe Puppet::Interface.interface(:node) do
     @interface.should be_instance_of(Puppet::Interface::Indirector)
   end
 
+  it "should set its default format to :yaml" do
+    @interface.default_format.should == :yaml
+  end
+
   it "should refer to the 'node' indirection" do
     @interface.indirection.name.should == :node
   end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list