alpha_omega 0.0.215 → 0.0.216
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/alpha_omega/utils.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.216
|
data/lib/alpha_omega/utils.rb
CHANGED
@@ -172,7 +172,7 @@ module AlphaOmega
|
|
172
172
|
$this_pod = File.read("/etc/podname").strip
|
173
173
|
config.set :current_pod, $this_pod
|
174
174
|
|
175
|
-
this_host = Socket.gethostname.chomp.split(".")[0]
|
175
|
+
this_host = ENV['_AO_THIS_HOST'] || Socket.gethostname.chomp.split(".")[0]
|
176
176
|
dna_base = "#{node_home}/pods/#{$this_pod}/#{this_host}"
|
177
177
|
dna = File.exists?("#{dna_base}.yaml") ? YAML.load(File.read("#{dna_base}.yaml")) : JSON.load(File.read("#{dna_base}.json"))
|
178
178
|
this_node = self.node_defaults(dna, $this_pod, this_host)
|