dark-capistrano-recipes 0.6.15 → 0.6.16

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/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 15
2
+ :patch: 16
3
3
  :major: 0
4
4
  :build:
5
5
  :minor: 6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dark-capistrano-recipes}
8
- s.version = "0.6.15"
8
+ s.version = "0.6.16"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Phil Misiowiec", "Leonardo Bighetti"]
data/doc/god/god.conf CHANGED
@@ -64,13 +64,13 @@ def generic_monitor(w, config, rails_root, options = {})
64
64
  w.transition(:up, :restart) do |on|
65
65
  on.condition(:memory_usage) do |c|
66
66
  c.interval = 20
67
- c.above = 100.megabytes
67
+ c.above = options[:memory_limit] || 150.megabytes
68
68
  c.times = [3, 5]
69
69
  end
70
70
 
71
71
  on.condition(:cpu_usage) do |c|
72
- c.interval = 10
73
- c.above = 20.percent
72
+ c.interval = 20
73
+ c.above = options[:cpu_limit] || 50.percent
74
74
  c.times = [3, 5]
75
75
  end
76
76
  end
@@ -9,7 +9,6 @@ Capistrano::Configuration.instance(:must_exist).load do
9
9
  set :app_server, :unicorn unless exists?(:app_server)
10
10
  set :web_server, :nginx unless exists?(:web_server)
11
11
  set :runner, user unless exists?(:runner)
12
-
13
12
  # The port to listen to, normally we default to 80
14
13
  set :application_port, 80 unless exists?(:application_port)
15
14
 
data/lib/recipes/god.rb CHANGED
@@ -80,7 +80,7 @@ Capistrano::Configuration.instance(:must_exist).load do
80
80
 
81
81
  desc "Restarts the app server"
82
82
  task :app, :roles => :app, :except => { :no_release => true } do
83
- sudo "#{bin_god} restart #{server-name}"
83
+ sudo "#{bin_god} restart #{application}-#{app_server.to_s.downcase}"
84
84
  end
85
85
  end
86
86
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dark-capistrano-recipes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 39
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 15
10
- version: 0.6.15
9
+ - 16
10
+ version: 0.6.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Phil Misiowiec