lib/rubber/environment.rb in rubber-1.1.5 vs lib/rubber/environment.rb in rubber-1.1.6
- old
+ new
@@ -77,10 +77,14 @@
@global = global
super()
replace(receiver)
end
+ def rubber_instances
+ @rubber_instances ||= Rubber::Configuration::rubber_instances
+ end
+
def [](name)
value = super(name)
value = global[name] if global && !value
return expand(value)
end
@@ -132,13 +136,9 @@
super(nil, bound_global)
end
def full_host
@full_host ||= "#{host}.#{domain}" rescue nil
- end
-
- def rubber_instances
- @rubber_instances ||= Rubber::Configuration::rubber_instances
end
# Forces role/host overrides into config
def bind_config(global)
global = global.clone()
\ No newline at end of file