summaryrefslogtreecommitdiffstats
path: root/lib/puppet/indirector/code
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-10-05 11:46:35 -0500
committerLuke Kanies <luke@madstop.com>2007-10-05 11:46:35 -0500
commit9c58c476c2ffcf9613f14e5881b1177f01d413a7 (patch)
tree8791274ce754f486f039ba942e3a5d3d9939df3e /lib/puppet/indirector/code
parentd35cd947c82ba9da8ec798100a3c710c34492521 (diff)
downloadpuppet-9c58c476c2ffcf9613f14e5881b1177f01d413a7.tar.gz
puppet-9c58c476c2ffcf9613f14e5881b1177f01d413a7.tar.xz
puppet-9c58c476c2ffcf9613f14e5881b1177f01d413a7.zip
Adding a :code setting for specifying code to run
instead of a manifest, and removing all of the ambiguity around whether an interpreter gets its own file specified or uses the central setting. Most of the changes are around fixing existing tests to use this new system.
Diffstat (limited to 'lib/puppet/indirector/code')
-rw-r--r--lib/puppet/indirector/code/configuration.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/puppet/indirector/code/configuration.rb b/lib/puppet/indirector/code/configuration.rb
index b3a4c67dd..0d06cb029 100644
--- a/lib/puppet/indirector/code/configuration.rb
+++ b/lib/puppet/indirector/code/configuration.rb
@@ -91,21 +91,7 @@ class Puppet::Indirector::Code::Configuration < Puppet::Indirector::Code
# Create our interpreter object.
def create_interpreter
- args = {}
-
- # Allow specification of a code snippet or of a file
- if self.code
- args[:Code] = self.code
- end
-
- # LAK:FIXME This needs to be handled somehow.
- #if options.include?(:UseNodes)
- # args[:UseNodes] = options[:UseNodes]
- #elsif @local
- # args[:UseNodes] = false
- #end
-
- return Puppet::Parser::Interpreter.new(args)
+ return Puppet::Parser::Interpreter.new
end
# Turn our host name into a node object.