magic_recipes_two 0.0.31 → 0.0.32
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.
- checksums.yaml +5 -13
- data/lib/capistrano/magic_recipes/version.rb +1 -1
- data/lib/capistrano/tasks/monit.rake +20 -16
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YzExOTY3MDAzYWNkZTM2Y2I4NjE2MjQyYzc4MWI1ZjhlYTQ5MTIxMg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 551ef2c39850350a2085c4a5a0a2bf89b1546547
|
4
|
+
data.tar.gz: 597fde89844bf4b562a3403f6007b27ebba3e8c4
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NzU4Yjc5YzllYzlkODg3NWJkYmJkZmFmNGY0ZmUyZmI2ODNjNzI3NDQwN2Yx
|
11
|
-
M2Q1MmRjZGQxNzA0MWM3ODM2NjUyMjMxMzZlMzBjZjg4NjRkOTU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZTk1NjNmYmE4MmMzNGExYjg5OTg2N2Q1ZTFlY2Q2Y2M3Yjk5M2ExZjY2Mjk2
|
14
|
-
OTRiYmZjODE2NjFlZDY3ZTE3ZDVmNmM0MGY1YzA3MTc2OGI4MGYwNjZkZWQx
|
15
|
-
MWFhNjZkMzA3OTIwODg1OWRhY2NlZjNkNDc4YjcxZjUxNGI2ZTY=
|
6
|
+
metadata.gz: b264e3fc3d6a8726551bb4689d4016a48aa52d8f762a04c0784f1d9e8231c9f66fa0566b0bf0a06623231eb00c0ec1e49f83d8a980b56ce28cc13dc420bcf152
|
7
|
+
data.tar.gz: 02f97e3d04239c8fceb7247f0e7efef4aec1dce873827e46d3974ccd755025da595365b11ea312725cace35b20bb5264cd3effc27eedf6768bc61ee1d5ae365e
|
@@ -72,22 +72,23 @@ namespace :monit do
|
|
72
72
|
|
73
73
|
|
74
74
|
%w[nginx postgresql redis sidekiq thin].each do |process|
|
75
|
-
if Array(fetch(:monit_processes)).include?(process)
|
76
75
|
|
77
76
|
%w[monitor unmonitor start stop restart].each do |command|
|
78
77
|
desc "#{command} monit-service for: #{process}"
|
79
78
|
task "#{command}_#{process}" do
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
79
|
+
if Array(fetch(:monit_processes)).include?(process)
|
80
|
+
on roles(fetch("#{process}_roles".to_sym)) do
|
81
|
+
if process == "sidekiq"
|
82
|
+
fetch(:sidekiq_processes).times do |idx|
|
83
|
+
sudo "#{fetch(:monit_bin)} #{command} #{sidekiq_service_name(idx)}"
|
84
|
+
end
|
85
|
+
elsif process == "thin"
|
86
|
+
fetch(:app_instances).times do |idx|
|
87
|
+
sudo "#{fetch(:monit_bin)} #{command} #{fetch(:application)}_#{fetch(:stage)}_thin_#{idx}"
|
88
|
+
end
|
89
|
+
else
|
90
|
+
sudo "#{fetch(:monit_bin)} #{command} #{process}"
|
84
91
|
end
|
85
|
-
elsif process == "thin"
|
86
|
-
fetch(:app_instances).times do |idx|
|
87
|
-
sudo "#{fetch(:monit_bin)} #{command} #{fetch(:application)}_#{fetch(:stage)}_thin_#{idx}"
|
88
|
-
end
|
89
|
-
else
|
90
|
-
sudo "#{fetch(:monit_bin)} #{command} #{process}"
|
91
92
|
end
|
92
93
|
end
|
93
94
|
end
|
@@ -97,21 +98,24 @@ namespace :monit do
|
|
97
98
|
## Server specific tasks (gets overwritten by other environments!)
|
98
99
|
desc "Upload Monit #{process} config file (server specific)"
|
99
100
|
task "configure_#{process}" do
|
100
|
-
|
101
|
-
|
101
|
+
if Array(fetch(:monit_processes)).include?(process)
|
102
|
+
on release_roles fetch("#{process}_roles".to_sym) do |role|
|
103
|
+
monit_config( process, nil, role )
|
104
|
+
end
|
102
105
|
end
|
103
106
|
end
|
104
107
|
elsif %w[sidekiq thin].include?(process)
|
105
108
|
## App specific tasks (unique for app and environment)
|
106
109
|
desc "Upload Monit #{process} config file (app specific)"
|
107
110
|
task "configure_#{process}" do
|
108
|
-
|
109
|
-
|
111
|
+
if Array(fetch(:monit_processes)).include?(process)
|
112
|
+
on release_roles fetch("#{process}_roles".to_sym) do |role|
|
113
|
+
monit_config process, "/etc/monit/conf.d/#{fetch(:application)}_#{fetch(:stage)}_#{process}.conf", role
|
114
|
+
end
|
110
115
|
end
|
111
116
|
end
|
112
117
|
end
|
113
118
|
|
114
|
-
end
|
115
119
|
end
|
116
120
|
|
117
121
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magic_recipes_two
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Torsten Wetzel
|
@@ -14,56 +14,56 @@ dependencies:
|
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: capistrano
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: capistrano-bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: capistrano-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.1'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
@@ -84,28 +84,28 @@ dependencies:
|
|
84
84
|
name: capistrano-postgresql
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '4.2'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '4.2'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: sqlite3
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
description: MagicRecipesTwo contains our most used deployment recipes for Capistrano-3.
|
@@ -165,17 +165,17 @@ require_paths:
|
|
165
165
|
- lib
|
166
166
|
required_ruby_version: !ruby/object:Gem::Requirement
|
167
167
|
requirements:
|
168
|
-
- -
|
168
|
+
- - ">="
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: '0'
|
171
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
172
|
requirements:
|
173
|
-
- -
|
173
|
+
- - ">="
|
174
174
|
- !ruby/object:Gem::Version
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.5.0
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: Some recipes for rails-4 and capistrano-3.
|