diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-15 20:16:21 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-15 20:16:21 +0000 |
| commit | bf701dcb819bf06449557b2ef6b2adf207a78586 (patch) | |
| tree | 7f6ed24c4f0653e9b8bf49494d1414dab9f3d5de /lib/puppet/parser | |
| parent | 0c97bb13d4b1aefda9768c000c542b3ddfc92b04 (diff) | |
| download | puppet-bf701dcb819bf06449557b2ef6b2adf207a78586.tar.gz puppet-bf701dcb819bf06449557b2ef6b2adf207a78586.tar.xz puppet-bf701dcb819bf06449557b2ef6b2adf207a78586.zip | |
adding extra checks to make sure networking is secure, and refactoring a heckuva lot of test
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@671 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/ast.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/parser/ast.rb b/lib/puppet/parser/ast.rb index 4c2f699c0..1918f60e9 100644 --- a/lib/puppet/parser/ast.rb +++ b/lib/puppet/parser/ast.rb @@ -11,6 +11,8 @@ module Puppet class ASTError < RuntimeError; end #--------------------------------------------------------------- class AST + Puppet.setdefault(:typecheck, true) + Puppet.setdefault(:paramcheck, true) attr_accessor :line, :file, :parent @@pink = "[0;31m" @@ -482,6 +484,8 @@ module Puppet # for types objtype = @type.value + # This will basically always be on, but I wanted to make it at + # least simple to turn off if it came to that if Puppet[:typecheck] builtin = false begin @@ -492,6 +496,8 @@ module Puppet if builtin # we're a builtin type #Puppet.debug "%s is a builtin type" % objtype + # like :typecheck, this always defaults to on, but + # at least it's easy to turn off if necessary if Puppet[:paramcheck] @params.each { |param| #p self.name |
