gap 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/README +10 -8
- data/lib/gap.rb +1 -1
- data/lib/gap/defalut_recipe.rb +10 -10
- data/lib/gap/recipes/hg.rb +2 -2
- metadata +1 -1
data/README
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
gap
|
2
2
|
|
3
|
+
ruby
|
4
|
+
|
3
5
|
-----------------------------------------------------------------------------------------------
|
4
6
|
あなたがすべき事
|
5
7
|
1 gap のインストール
|
@@ -29,27 +31,27 @@ global: #グローバルな環境変
|
|
29
31
|
rvm_god_string: 1.9.2@god #godのgemset
|
30
32
|
rvm_ruby_string: 1.8.7@hoge #appのgemset
|
31
33
|
|
32
|
-
local
|
34
|
+
local:
|
33
35
|
rails:
|
34
36
|
task: #コマンドを定義
|
35
37
|
start: rails server #gap local rails start
|
36
38
|
stop: #gap local rails stop
|
37
|
-
|
38
|
-
resque
|
39
|
+
restart:
|
40
|
+
resque:
|
39
41
|
task:
|
40
42
|
start: #gap local resque start
|
41
43
|
stop: #gap local resque stop
|
42
44
|
restart:
|
43
45
|
|
44
|
-
dev
|
46
|
+
dev:
|
45
47
|
role:
|
46
48
|
web: "xxxx" #deploy先を指定
|
47
49
|
rails:
|
48
50
|
task:
|
49
51
|
start: rails server #gap dev rails start
|
50
52
|
stop:
|
51
|
-
|
52
|
-
resque
|
53
|
+
restart:
|
54
|
+
resque:
|
53
55
|
task:
|
54
56
|
start:
|
55
57
|
stop:
|
@@ -68,8 +70,8 @@ alpha:
|
|
68
70
|
task:
|
69
71
|
start: rails server #gap dev rails start
|
70
72
|
stop:
|
71
|
-
resstart
|
72
|
-
resque
|
73
|
+
resstart:
|
74
|
+
resque:
|
73
75
|
set:
|
74
76
|
god: true
|
75
77
|
pid_file:
|
data/lib/gap.rb
CHANGED
data/lib/gap/defalut_recipe.rb
CHANGED
@@ -1,13 +1,3 @@
|
|
1
|
-
load File.expand_path './recipes/hg.rb', File.dirname(__FILE__)
|
2
|
-
load File.expand_path './recipes/sys.rb', File.dirname(__FILE__)
|
3
|
-
load File.expand_path './recipes/god.rb', File.dirname(__FILE__)
|
4
|
-
#load 'deploy' if respond_to?(:namespace)
|
5
|
-
load File.expand_path './recipes/deploy.rb', File.dirname(__FILE__)
|
6
|
-
|
7
|
-
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
|
8
|
-
require "rvm/capistrano"
|
9
|
-
set :rvm_bin_path, "/usr/local/rvm/bin/"
|
10
|
-
|
11
1
|
set :stages, %w(dev alpha beta pro)
|
12
2
|
set :default_stage, "dev"
|
13
3
|
set :scm, "mercurial"
|
@@ -18,3 +8,13 @@ set :clone_to, "/var/apps/#{env}"
|
|
18
8
|
set :deploy_to, "/var/apps/#{env}/#{fetch :application}"
|
19
9
|
#set :pid_file, "#{deploy_to}/pid/#{env}.pid"
|
20
10
|
set :use_sudo, true
|
11
|
+
|
12
|
+
load File.expand_path './recipes/hg.rb', File.dirname(__FILE__)
|
13
|
+
load File.expand_path './recipes/sys.rb', File.dirname(__FILE__)
|
14
|
+
load File.expand_path './recipes/god.rb', File.dirname(__FILE__)
|
15
|
+
#load 'deploy' if respond_to?(:namespace)
|
16
|
+
load File.expand_path './recipes/deploy.rb', File.dirname(__FILE__)
|
17
|
+
|
18
|
+
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
|
19
|
+
require "rvm/capistrano"
|
20
|
+
set :rvm_bin_path, "/usr/local/rvm/bin/"
|
data/lib/gap/recipes/hg.rb
CHANGED
@@ -5,11 +5,11 @@ namespace :hg do
|
|
5
5
|
end
|
6
6
|
|
7
7
|
task :pull do
|
8
|
-
run "cd #{deploy_to} && hg pull -b #{
|
8
|
+
run "cd #{deploy_to} && hg pull -b #{env}"
|
9
9
|
end
|
10
10
|
|
11
11
|
task :update do
|
12
|
-
run "cd #{deploy_to} && hg update #{
|
12
|
+
run "cd #{deploy_to} && hg update #{env} -C"
|
13
13
|
glog
|
14
14
|
end
|
15
15
|
|