summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/variables.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-19 22:16:13 -0500
committerLuke Kanies <luke@madstop.com>2008-05-19 22:16:13 -0500
commitee4be4f78f7c904dbe5873ff7b44993d1440da41 (patch)
treef5e11afc9d798953de8dbd63818da650b0bc0056 /lib/puppet/util/variables.rb
parentb8ce6a1a8c5dc370cae86cc3a40450d472e6843c (diff)
downloadpuppet-ee4be4f78f7c904dbe5873ff7b44993d1440da41.tar.gz
puppet-ee4be4f78f7c904dbe5873ff7b44993d1440da41.tar.xz
puppet-ee4be4f78f7c904dbe5873ff7b44993d1440da41.zip
Removing an unused file. Closes #1229.
Diffstat (limited to 'lib/puppet/util/variables.rb')
-rw-r--r--lib/puppet/util/variables.rb38
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/puppet/util/variables.rb b/lib/puppet/util/variables.rb
deleted file mode 100644
index 1a78ef5c1..000000000
--- a/lib/puppet/util/variables.rb
+++ /dev/null
@@ -1,38 +0,0 @@
-module Puppet::Util::Variables
- def inithooks
- @instance_init_hooks.dup
- end
-
- def initvars
- return unless defined? @class_init_hooks
- self.inithooks.each do |var, value|
- if value.is_a?(Class)
- instance_variable_set("@" + var.to_s, value.new)
- else
- instance_variable_set("@" + var.to_s, value)
- end
- end
- end
-
- def instancevar(hash)
- @instance_init_hooks ||= {}
-
- unless method_defined?(:initvars)
- define_method(:initvars) do
- self.class.inithooks.each do |var, value|
- if value.is_a?(Class)
- instance_variable_set("@" + var.to_s, value.new)
- else
- instance_variable_set("@" + var.to_s, value)
- end
- end
- end
- end
- hash.each do |var, value|
- raise("Already initializing %s" % var) if @instance_init_hooks[var]
-
- @instance_init_hooks[var] = value
- end
- end
-end
-