alpha_omega 0.0.91 → 0.0.92

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.
@@ -66,11 +66,11 @@ module AlphaOmega
66
66
  Proc.new do |config, pod_name, pod, mix_pods, pods_config, opsdb, this_pod, this_node, &node_filter|
67
67
  [ "", ".echo", ".yaml" ].each do |tsuffix|
68
68
  # world task accumulates all.* after tasks
69
- config.task "world#{tsuffix}" do
69
+ config.task "world#{tsuffix}" do # task world
70
70
  end
71
71
 
72
72
  # each pod task sets the pod context for host/group tasks
73
- config.task "#{pod_name}#{tsuffix}" do
73
+ config.task "#{pod_name}#{tsuffix}" do # task default, pod1
74
74
  set :current_pod, pod_name
75
75
  end
76
76
  end
@@ -80,20 +80,21 @@ module AlphaOmega
80
80
  n = AlphaOmega.node_defaults(node, pods_config, opsdb, pod_name, this_pod, remote_name)
81
81
 
82
82
  if node_filter.nil? || node_filter.call(this_node, n)
83
- config.task "#{task_name}.#{pod_name}" do
83
+ config.task "#{task_name}.#{pod_name}" do # task host.default, host.pod1
84
84
  role :app, remote_name
85
+ set :dna, n
85
86
  end
86
87
 
87
- config.task "#{task_name}.#{pod_name}.echo" do
88
+ config.task "#{task_name}.#{pod_name}.echo" do # task host.default.echo, host.pod1.echo
88
89
  puts "#{AlphaOmega.magic_prefix} #{remote_name}"
89
90
  end
90
91
 
91
- config.task "#{task_name}.#{pod_name}.yaml" do
92
+ config.task "#{task_name}.#{pod_name}.yaml" do # task host.default.yaml, host.pod1..yaml
92
93
  StringIO.new({ remote_name => n }.to_yaml).lines.each {|l| puts "#{AlphaOmega.magic_prefix} #{l}" }
93
94
  end
94
95
 
95
96
  [ "", ".echo", ".yaml" ].each do |tsuffix|
96
- config.task "#{task_name}#{tsuffix}" do
97
+ config.task "#{task_name}#{tsuffix}" do # task host -> host.current_pod
97
98
  after "#{task_name}#{tsuffix}", "#{task_name}.#{current_pod}#{tsuffix}"
98
99
  end
99
100
  end
@@ -1,3 +1,3 @@
1
1
  module AlphaOmega
2
- Version = "0.0.91"
2
+ Version = "0.0.92"
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: 169
4
+ hash: 167
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 91
10
- version: 0.0.91
9
+ - 92
10
+ version: 0.0.92
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,36 +119,37 @@ files:
118
119
  - LICENSE
119
120
  - README.mkd
120
121
  - Procfile.rb
121
- - libexec/dna
122
- - libexec/invoke
123
- - libexec/hosts
124
- - libexec/rollback
125
- - libexec/shell
126
- - libexec/dist
127
- - libexec/release
128
- - libexec/check
129
122
  - libexec/proxy
130
123
  - libexec/build
124
+ - libexec/restart
125
+ - libexec/stage
126
+ - libexec/rollback
131
127
  - libexec/compare
128
+ - libexec/shell
132
129
  - libexec/deploy
133
- - libexec/stage
134
130
  - libexec/config
135
- - libexec/restart
131
+ - libexec/dna
132
+ - libexec/check
133
+ - libexec/invoke
134
+ - libexec/hosts
135
+ - libexec/release
136
+ - libexec/dist
137
+ - lib/alpha_omega/utils.rb
138
+ - lib/alpha_omega/deploy.rb
136
139
  - lib/alpha_omega/version.rb
137
- - lib/alpha_omega/deploy/strategy.rb
138
- - lib/alpha_omega/deploy/remote_dependency.rb
139
- - lib/alpha_omega/deploy/scm.rb
140
- - lib/alpha_omega/deploy/dependencies.rb
140
+ - lib/alpha_omega/deploy/local_dependency.rb
141
141
  - lib/alpha_omega/deploy/strategy/base.rb
142
- - lib/alpha_omega/deploy/strategy/remote.rb
143
142
  - lib/alpha_omega/deploy/strategy/checkout.rb
144
- - lib/alpha_omega/deploy/local_dependency.rb
143
+ - lib/alpha_omega/deploy/strategy/remote.rb
144
+ - lib/alpha_omega/deploy/scm.rb
145
145
  - lib/alpha_omega/deploy/templates/maintenance.rhtml
146
- - lib/alpha_omega/deploy/scm/git.rb
146
+ - lib/alpha_omega/deploy/strategy.rb
147
147
  - lib/alpha_omega/deploy/scm/base.rb
148
- - lib/alpha_omega/deploy.rb
149
- - lib/alpha_omega/utils.rb
148
+ - lib/alpha_omega/deploy/scm/git.rb
149
+ - lib/alpha_omega/deploy/dependencies.rb
150
+ - lib/alpha_omega/deploy/remote_dependency.rb
150
151
  - bin/alpha_omega
152
+ has_rdoc: true
151
153
  homepage: https://github.com/HeSYINUvSBZfxqA/alpha_omega
152
154
  licenses: []
153
155
 
@@ -177,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
179
  requirements: []
178
180
 
179
181
  rubyforge_project:
180
- rubygems_version: 1.8.17
182
+ rubygems_version: 1.5.3
181
183
  signing_key:
182
184
  specification_version: 3
183
185
  summary: alpha_omega capistrano recipes