alpha_omega 0.0.207 → 0.0.208
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/alpha_omega/utils.rb +3 -7
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.208
|
data/lib/alpha_omega/utils.rb
CHANGED
|
@@ -6,13 +6,9 @@ $this_pod = nil
|
|
|
6
6
|
$this_host = nil
|
|
7
7
|
$opsdb = nil
|
|
8
8
|
$pods_config = nil
|
|
9
|
+
$magic_prefix = "eea914aaa8dde6fdae29242b1084a2b0415eefaf"
|
|
9
10
|
|
|
10
11
|
module AlphaOmega
|
|
11
|
-
|
|
12
|
-
def self.magic_prefix
|
|
13
|
-
"eea914aaa8dde6fdae29242b1084a2b0415eefaf"
|
|
14
|
-
end
|
|
15
|
-
|
|
16
12
|
def self.node_defaults(node, env_pod, node_name)
|
|
17
13
|
node_name = node_name.split(".").first
|
|
18
14
|
|
|
@@ -100,11 +96,11 @@ module AlphaOmega
|
|
|
100
96
|
end
|
|
101
97
|
|
|
102
98
|
config.task "#{task_name}.#{pod_name}.echo" do # task host.pod1.echo
|
|
103
|
-
puts "#{
|
|
99
|
+
puts "#{$magic_prefix} #{remote_name}"
|
|
104
100
|
end
|
|
105
101
|
|
|
106
102
|
config.task "#{task_name}.#{pod_name}.yaml" do # task host.pod1.yaml
|
|
107
|
-
StringIO.new({ remote_name => n }.to_yaml).lines.to_a[1..-1].each {|l| puts "#{
|
|
103
|
+
StringIO.new({ remote_name => n }.to_yaml).lines.to_a[1..-1].each {|l| puts "#{$magic_prefix} #{l}" }
|
|
108
104
|
end
|
|
109
105
|
|
|
110
106
|
%w(app echo yaml).each do |tsuffix|
|