summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-13 11:58:33 -0500
committerLuke Kanies <luke@madstop.com>2008-05-13 11:58:33 -0500
commit59b9958712d033bbd294ff6469ea3a242c45c82c (patch)
tree974e6671d0de94c805d8e1b5c1c53701d301b816 /lib
parent49dde1187e8caea10af63ec1f92e19c0e5f1a595 (diff)
downloadpuppet-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.rb12
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