[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Daniel Pittman
daniel at puppetlabs.com
Tue May 10 08:13:23 UTC 2011
The following commit has been merged in the experimental branch:
commit 2a87f410eae84a0a7c4f39d9c1ef742c3e7ba8fc
Author: Daniel Pittman <daniel at puppetlabs.com>
Date: Mon Apr 11 16:43:56 2011 -0700
(#6962) Override 'render' in help to just return the string.
The default behaviour is to serialize the result somehow, defaulting to
displayed, render should be a no-op. This means overriding the parent method.
Paired-With: Matt Robinson <matt at puppetlabs.com>
diff --git a/lib/puppet/application/help.rb b/lib/puppet/application/help.rb
index b3666f1..fd8818d 100644
--- a/lib/puppet/application/help.rb
+++ b/lib/puppet/application/help.rb
@@ -1,7 +1,8 @@
+# -*- coding: utf-8 -*-
require 'puppet/application/faces_base'
class Puppet::Application::Help < Puppet::Application::FacesBase
- def render(result)
- result.join("\n")
- end
+ # Meh. Disable the default behaviour, which is to inspect the
+ # string and return that – not so helpful. --daniel 2011-04-11
+ def render(result) result end
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list