lib/tap/env.rb in tap-0.12.2 vs lib/tap/env.rb in tap-0.12.3
- old
+ new
@@ -101,17 +101,11 @@
# + gem environments (in that order). Nested environments are
# activated/deactivated with self.
attr_reader :envs
# The Root directory structure for self.
- nest(:root, Tap::Root) do |config|
- case config
- when Root then config
- when String then Root.new(config)
- else Root.new.reconfigure(config)
- end
- end
+ nest(:root, Tap::Root, :initializer => false)
# Specify gems to load as nested Envs. Gems may be specified
# by name and/or version, like 'gemname >= 1.2'; by default the
# latest version of the gem is selected.
#
@@ -479,9 +473,17 @@
protected
# A hash of the manifests for self.
attr_reader :manifests
+
+ def initialize_root(config)
+ case config
+ when Root then config
+ when String then Root.new(config)
+ else Root.new.reconfigure(config)
+ end
+ end
def minikey(env)
env.root.root
end
\ No newline at end of file