gap 0.0.21 → 0.0.22

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/README CHANGED
@@ -83,6 +83,12 @@ alpha:
83
83
  beta:
84
84
  pro:
85
85
 
86
+ -----------------------------------------------------------------------------------------------
87
+ deployコマンドについて
88
+ update + reload が実行されます。
89
+ updateは、リポジトリからソースをpullし、指定のブランチにupdateします。
90
+ reloadは、各アプリケーションで指定されたreloadコマンドをそれぞれ実行します。
91
+
86
92
  -----------------------------------------------------------------------------------------------
87
93
  コマンド
88
94
  alpha環境でdeploy
data/lib/gap.rb CHANGED
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Gap
5
- VERSION = '0.0.21'
5
+ VERSION = '0.0.22'
6
6
  end
@@ -2,7 +2,7 @@ namespace :deploy do
2
2
 
3
3
  task :default do
4
4
  hg.fetch
5
- restart
5
+ reload
6
6
  end
7
7
 
8
8
  task :setup do
@@ -10,27 +10,15 @@ module Gap
10
10
  return unless value
11
11
  #gap dev start,restart,god
12
12
  %w(role set task).each {|key| value.delete(key)}
13
- %w(start reload).each do |com|
13
+ %w(start stop reload restart).each do |com|
14
14
  task(com) do
15
- value.each do |app, commands|
15
+ value.to_a.each do |app, commands|
16
16
  send(app)
17
17
  send(com) if commands["task"][com]
18
18
  end
19
19
  end
20
20
  end
21
21
 
22
- task(:stop) do
23
- value.to_a.reverse.each do |app, commands|
24
- send(app)
25
- send("stop") if commands["task"]["stop"]
26
- end
27
- end
28
-
29
- task(:restart) do
30
- stop
31
- start
32
- end
33
-
34
22
  namespace :god do
35
23
  task(:config) do
36
24
  value.each do |app,commands|
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gap
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.21
5
+ version: 0.0.22
6
6
  platform: ruby
7
7
  authors:
8
8
  - Takashi Yaguchi
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-02-10 00:00:00 Z
13
+ date: 2012-04-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdoc