From 5938452dccc8c925bc6275a62ae96f50916cc239 Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Mon, 18 Apr 2011 15:23:03 -0700 Subject: (#7013) Strip out old face-wide rendering defaults. Now we want to support action-based rendering, it is super-hard to define the semantics around defaulting where things are unspecified: the execution context (CLI, HTTP, etc) vs the face, vs the action all have different semantics. Without solving the problem of how we express all that context and those semantics down in the action, especially one written by a third party, this just becomes a box of counter-intuitive and annoying semantics and edge-cases. Reviewed-By: Max Martin --- lib/puppet/interface/action.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/interface') diff --git a/lib/puppet/interface/action.rb b/lib/puppet/interface/action.rb index 53c40bc51..8bacc216d 100644 --- a/lib/puppet/interface/action.rb +++ b/lib/puppet/interface/action.rb @@ -9,9 +9,9 @@ class Puppet::Interface::Action @name = name.to_sym attrs.each do |k, v| send("#{k}=", v) end - @options = {} + @options = {} @when_rendering = {} - @render_as = :for_humans + @render_as = :for_humans end # This is not nice, but it is the easiest way to make us behave like the -- cgit