diff options
author | Luke Kanies <luke@madstop.com> | 2008-05-13 11:58:33 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-05-13 11:58:33 -0500 |
commit | 59b9958712d033bbd294ff6469ea3a242c45c82c (patch) | |
tree | 974e6671d0de94c805d8e1b5c1c53701d301b816 /lib | |
parent | 49dde1187e8caea10af63ec1f92e19c0e5f1a595 (diff) | |
download | puppet-59b9958712d033bbd294ff6469ea3a242c45c82c.tar.gz puppet-59b9958712d033bbd294ff6469ea3a242c45c82c.tar.xz puppet-59b9958712d033bbd294ff6469ea3a242c45c82c.zip |
Correcting whitespace in the templatewrapper code.
Also slightly modified the wording of some of the tests.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/parser/templatewrapper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/puppet/parser/templatewrapper.rb b/lib/puppet/parser/templatewrapper.rb index 4f044befc..4790cea30 100644 --- a/lib/puppet/parser/templatewrapper.rb +++ b/lib/puppet/parser/templatewrapper.rb @@ -19,14 +19,14 @@ class Puppet::Parser::TemplateWrapper @scope.parser.watch_file(@file) end end - + # Should return true if a variable is defined, false if it is not def has_variable?(name) - if @scope.lookupvar(name.to_s, false) != :undefined - true - else - false - end + if @scope.lookupvar(name.to_s, false) != :undefined + true + else + false + end end # Ruby treats variables like methods, so we can cheat here and |