summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application/help.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-04-11 16:43:56 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-04-12 16:12:09 -0700
commit2a87f410eae84a0a7c4f39d9c1ef742c3e7ba8fc (patch)
tree968a3bcd634036a26907abf9f4fd9950000ab1b1 /lib/puppet/application/help.rb
parent657082755a20da801b4c679eff296053380c61b6 (diff)
downloadpuppet-2a87f410eae84a0a7c4f39d9c1ef742c3e7ba8fc.tar.gz
puppet-2a87f410eae84a0a7c4f39d9c1ef742c3e7ba8fc.tar.xz
puppet-2a87f410eae84a0a7c4f39d9c1ef742c3e7ba8fc.zip
(#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@puppetlabs.com>
Diffstat (limited to 'lib/puppet/application/help.rb')
-rw-r--r--lib/puppet/application/help.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/puppet/application/help.rb b/lib/puppet/application/help.rb
index b3666f12d..fd8818db0 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