From 76304f8b09ec7d47b5ebd75efde8499a1e3ca63c Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Fri, 30 Apr 2010 14:54:07 -0700 Subject: feature #2276 Single Executable: move CommandLine methods move Util::CommandLine methods into instances instead of on the class, as suggested by Markus Signed-off-by: Jesse Wolfe --- lib/puppet/reference/providers.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/puppet/reference') diff --git a/lib/puppet/reference/providers.rb b/lib/puppet/reference/providers.rb index df02178e3..33d85061e 100644 --- a/lib/puppet/reference/providers.rb +++ b/lib/puppet/reference/providers.rb @@ -8,8 +8,9 @@ providers = Puppet::Util::Reference.newreference :providers, :title => "Provider end types.sort! { |a,b| a.name.to_s <=> b.name.to_s } - unless Puppet::Util::CommandLine.args.empty? - types.reject! { |type| ! Puppet::Util::CommandLine.args.include?(type.name.to_s) } + command_line = Puppet::Util::CommandLine.new + unless command_line.args.empty? + types.reject! { |type| ! command_line.args.include?(type.name.to_s) } end ret = "Details about this host:\n\n" -- cgit