diff options
Diffstat (limited to 'lib/puppet/application.rb')
-rw-r--r-- | lib/puppet/application.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/puppet/application.rb b/lib/puppet/application.rb index abd930949..3409d3615 100644 --- a/lib/puppet/application.rb +++ b/lib/puppet/application.rb @@ -11,7 +11,7 @@ require 'optparse' # # For legacy compatibility, # Puppet::Application[:example].run -# is equivalent to +# is equivalent to # Puppet::Application::Example.new.run # # @@ -182,7 +182,7 @@ class Application end def should_parse_config? - if ! defined? @parse_config + if ! defined?(@parse_config) @parse_config = true end return @parse_config @@ -259,7 +259,7 @@ class Application end def option_parser - return @option_parser if defined? @option_parser + return @option_parser if defined?(@option_parser) @option_parser = OptionParser.new(self.class.banner) @@ -280,7 +280,7 @@ class Application $puppet_application_mode = @run_mode $puppet_application_name = name - + if Puppet.respond_to? :settings # This is to reduce the amount of confusion in rspec # because it might have loaded defaults.rb before the globals were set |