alpha_omega 0.0.82 → 0.0.83

Sign up to get free protection for your applications and to get access to all the features.
@@ -211,15 +211,16 @@ module AlphaOmega
211
211
  pods = { }
212
212
 
213
213
  this_pod = File.read("/etc/podname").strip
214
+
215
+ this_host = Socket.gethostname.chomp.split(".")[0]
216
+ n = File.exists?("#{node_home}/pods/#{this_pod}/#{this_host}.yaml") ? YAML.load(File.read("#{node_home}/pods/#{this_pod}/#{this_host}.yaml")) : JSON.load(File.read("#{node_home}/pods/#{this_pod}/#{this_host}.json"))
217
+ this_node = AlphaOmega.node_defaults(n, pods_config, opsdb, this_pod, this_pod, this_host)
218
+
214
219
  pods["default"] = {
215
220
  "nodes_specs" => [ "#{node_home}/pods/#{this_pod}/*.yaml", "#{node_home}/pods/#{this_pod}/*.json" ],
216
221
  "node_suffix" => ""
217
222
  }
218
- yield config, "default", pods["default"], pods_config, opsdb, this_pod # TODO get rid of default and use this_pod
219
-
220
- this_host = Socket.gethostname.chomp.split(".")[0]
221
- n = File.exists?("#{node_home}/pods/#{this_pod}/#{this_host}.yaml") ? YAML.load(File.read("#{node_home}/pods/#{this_pod}/#{this_host}.yaml")) : JSON.load(File.read("#{node_home}/pods/#{this_pod}/#{this_host}.json"))
222
- this_node = AlphaOmega.node_defaults(n, pods_config, opsdb, this_pod, this_pod, this_host)
223
+ yield config, "default", pods["default"], pods_config, opsdb, this_pod, this_node # TODO get rid of default and use this_pod
223
224
 
224
225
  (this_node["pods"] || []).each do |pod_name|
225
226
  pods[pod_name] = {
@@ -1,3 +1,3 @@
1
1
  module AlphaOmega
2
- Version = "0.0.82"
2
+ Version = "0.0.83"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alpha_omega
3
3
  version: !ruby/object:Gem::Version
4
- hash: 187
4
+ hash: 185
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 82
10
- version: 0.0.82
9
+ - 83
10
+ version: 0.0.83
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem
@@ -16,7 +16,8 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-31 00:00:00 Z
19
+ date: 2011-08-31 00:00:00 +00:00
20
+ default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: grit
@@ -118,30 +119,31 @@ files:
118
119
  - LICENSE
119
120
  - README.mkd
120
121
  - Procfile.rb
121
- - libexec/dna
122
- - libexec/hosts
122
+ - libexec/stage
123
123
  - libexec/rollback
124
- - libexec/shell
125
- - libexec/check
126
124
  - libexec/compare
125
+ - libexec/shell
127
126
  - libexec/deploy
128
- - libexec/stage
129
127
  - libexec/patch
128
+ - libexec/dna
129
+ - libexec/check
130
+ - libexec/hosts
131
+ - lib/alpha_omega/utils.rb
132
+ - lib/alpha_omega/deploy.rb
130
133
  - lib/alpha_omega/version.rb
131
- - lib/alpha_omega/deploy/strategy.rb
132
- - lib/alpha_omega/deploy/remote_dependency.rb
133
- - lib/alpha_omega/deploy/scm.rb
134
- - lib/alpha_omega/deploy/dependencies.rb
134
+ - lib/alpha_omega/deploy/local_dependency.rb
135
135
  - lib/alpha_omega/deploy/strategy/base.rb
136
- - lib/alpha_omega/deploy/strategy/remote.rb
137
136
  - lib/alpha_omega/deploy/strategy/checkout.rb
138
- - lib/alpha_omega/deploy/local_dependency.rb
137
+ - lib/alpha_omega/deploy/strategy/remote.rb
138
+ - lib/alpha_omega/deploy/scm.rb
139
139
  - lib/alpha_omega/deploy/templates/maintenance.rhtml
140
- - lib/alpha_omega/deploy/scm/git.rb
140
+ - lib/alpha_omega/deploy/strategy.rb
141
141
  - lib/alpha_omega/deploy/scm/base.rb
142
- - lib/alpha_omega/deploy.rb
143
- - lib/alpha_omega/utils.rb
142
+ - lib/alpha_omega/deploy/scm/git.rb
143
+ - lib/alpha_omega/deploy/dependencies.rb
144
+ - lib/alpha_omega/deploy/remote_dependency.rb
144
145
  - bin/alpha_omega
146
+ has_rdoc: true
145
147
  homepage: https://github.com/HeSYINUvSBZfxqA/alpha_omega
146
148
  licenses: []
147
149
 
@@ -171,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
173
  requirements: []
172
174
 
173
175
  rubyforge_project:
174
- rubygems_version: 1.8.17
176
+ rubygems_version: 1.5.3
175
177
  signing_key:
176
178
  specification_version: 3
177
179
  summary: alpha_omega capistrano recipes