[DRE-commits] [ruby-hiera] 01/01: removed file, not in upstream anymore
Jonas Genannt
jonas at brachium-system.net
Fri Nov 22 07:16:54 UTC 2013
This is an automated email from the git hooks/post-receive script.
hggh-guest pushed a commit to branch master
in repository ruby-hiera.
commit c90ae9bf8e6f41b5916199564216cffc5a607939
Author: Jonas Genannt <jonas at brachium-system.net>
Date: Fri Nov 22 08:16:49 2013 +0100
removed file, not in upstream anymore
---
lib/hiera/recursive_lookup.rb | 31 -------------------------------
1 file changed, 31 deletions(-)
diff --git a/lib/hiera/recursive_lookup.rb b/lib/hiera/recursive_lookup.rb
deleted file mode 100644
index 5dfc53b..0000000
--- a/lib/hiera/recursive_lookup.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-# Allow for safe recursive lookup of values during variable interpolation.
-#
-# @api private
-class Hiera::RecursiveLookup
- def initialize(scope, extra_data)
- @seen = []
- @scope = scope
- @extra_data = extra_data
- end
-
- def lookup(name, &block)
- if @seen.include?(name)
- raise Exception, "Interpolation loop detected in [#{@seen.join(', ')}]"
- end
- @seen.push(name)
- ret = yield(current_value)
- @seen.pop
- ret
- end
-
- def current_value
- name = @seen.last
-
- scope_val = @scope[name]
- if scope_val.nil? || scope_val == :undefined
- @extra_data[name]
- else
- scope_val
- end
- end
-end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-hiera.git
More information about the Pkg-ruby-extras-commits
mailing list