gap 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gap/tasks.rb +1 -1
- data/lib/gap/tmpl.erb +1 -1
- data/lib/gap.rb +1 -1
- metadata +2 -2
data/lib/gap/tasks.rb
CHANGED
@@ -67,7 +67,7 @@ module Gap
|
|
67
67
|
task(:config) do
|
68
68
|
god_config_path = File.join( deploy_to, "config/god_#{application}_#{attr}.rb")
|
69
69
|
tmpl_path = File.expand_path 'tmpl.erb', File.dirname(__FILE__)
|
70
|
-
god_config = Gap::GodErb.new(tmpl_path,application, attr, v)
|
70
|
+
god_config = Gap::GodErb.new(tmpl_path,application, attr, v.merge({"pid_file" => pid_file}))
|
71
71
|
upload( god_config.render, god_config_path, :via => :scp)
|
72
72
|
sudo "rvm-shell '#{rvm_god_string}' -c 'god load #{god_config_path}'"
|
73
73
|
end
|
data/lib/gap/tmpl.erb
CHANGED
@@ -6,7 +6,7 @@ God.watch do |w|
|
|
6
6
|
w.stop = "<%= "#{@commands["stop"]}"%>"
|
7
7
|
w.restart = "<%= "#{@commands["restart"]}"%>"
|
8
8
|
<% if @commands["pid_file"] %>
|
9
|
-
|
9
|
+
w.pid_file = "<%= "#{@commands["pid_file"]}" %>"
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
# clean pid files before start if necessary
|
data/lib/gap.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.20
|
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-
|
13
|
+
date: 2012-02-07 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdoc
|