rubber 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rubber/environment.rb +8 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/rubber/environment.rb
CHANGED
@@ -125,14 +125,20 @@ module Rubber
|
|
125
125
|
class BoundEnv < HashValueProxy
|
126
126
|
attr_reader :roles
|
127
127
|
attr_reader :host
|
128
|
-
attr_reader :full_host
|
129
128
|
|
130
129
|
def initialize(global, roles, host)
|
131
130
|
@roles = roles
|
132
131
|
@host = host
|
133
132
|
bound_global = bind_config(global)
|
134
133
|
super(nil, bound_global)
|
135
|
-
|
134
|
+
end
|
135
|
+
|
136
|
+
def full_host
|
137
|
+
@full_host ||= "#{host}.#{domain}" rescue nil
|
138
|
+
end
|
139
|
+
|
140
|
+
def rubber_instances
|
141
|
+
@rubber_instances ||= Rubber::Configuration::rubber_instances
|
136
142
|
end
|
137
143
|
|
138
144
|
# Forces role/host overrides into config
|