capistrano-supervisor 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MGFkMjUxNjAxYjg2YjVlNDgyNDBlZDI5ZjRjYzk0ODBmMTI2NWQ5ZA==
5
- data.tar.gz: !binary |-
6
- NmQ0MjQwMmNhZjJhZWY1YjVmY2UxYzBhNDNlMjJmZTI0YzQ3YTg0OQ==
2
+ SHA1:
3
+ metadata.gz: b1e93148d090a16c0e7be1a67b8d1fd5703ba7c4
4
+ data.tar.gz: 6141ecb46d818be2738e8d1b50b54ff83d2c7d9e
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MzQxNzk4MDdhMDhlZWQ0ZjJkMzc3ZjNkOWM0YzFmODMyNDA0NjcyNzIwYWVk
10
- MjIwNGE4YzFkOWQ0MzhlYTU5OWIxYzA2MmQ4NzAzOThhN2Q4ZjA4M2Y5MDAy
11
- Y2RjNGUwNTRmYzA1MzM1YWNhZWEyNTk2YjY3MWZiNjY2MjEwZTA=
12
- data.tar.gz: !binary |-
13
- YzQxM2VmYTJlZGQxOTg5NjE0M2RhZDZiZGEwNDc3ODI2NzQyYmI0NWQ0ZjFi
14
- MjFkODhkOWYyNThiN2QxOTczNDgxZThhODU0NGQwNjhkMzQ5NDM3ZWE4N2Ix
15
- OWJhY2U0OGNjYzRlYTQ0Y2UxNjk5ODMwNGZiYWU5N2RmM2NmOWU=
6
+ metadata.gz: 2c198a2522eec9feeaf9d828df4080e8d1e81df8dbdcf9ea5e702ab4082d56443ba896375ab5ea8c8cf902d49e4269aaad9ec8c1644e56671729f5f6159fa4f0
7
+ data.tar.gz: c3b8c46c934df3de724101a498bf12d0cdfe0e033769f5723eb346f634607e02d87935c7200c7a3834f5bfe891482ea517abc8821fb638dc144dd09b2e5fabeb
data/Gemfile.lock CHANGED
@@ -1,24 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-supervisor (1.0.0)
4
+ capistrano-supervisor (1.1.0)
5
5
  capistrano (>= 3.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- capistrano (3.4.0)
10
+ airbrussh (1.3.0)
11
+ sshkit (>= 1.6.1, != 1.7.0)
12
+ capistrano (3.10.2)
13
+ airbrussh (>= 1.0.0)
11
14
  i18n
12
15
  rake (>= 10.0.0)
13
- sshkit (~> 1.3)
14
- colorize (0.7.7)
15
- i18n (0.7.0)
16
+ sshkit (>= 1.9.0)
17
+ concurrent-ruby (1.0.5)
18
+ i18n (1.0.1)
19
+ concurrent-ruby (~> 1.0)
16
20
  net-scp (1.2.1)
17
21
  net-ssh (>= 2.6.5)
18
- net-ssh (3.0.1)
22
+ net-ssh (4.2.0)
19
23
  rake (10.4.2)
20
- sshkit (1.7.1)
21
- colorize (>= 0.7.0)
24
+ sshkit (1.16.1)
22
25
  net-scp (>= 1.1.2)
23
26
  net-ssh (>= 2.8.0)
24
27
 
@@ -31,4 +34,4 @@ DEPENDENCIES
31
34
  rake (~> 10.0)
32
35
 
33
36
  BUNDLED WITH
34
- 1.10.5
37
+ 1.16.2
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-supervisor"
7
- spec.version = '1.0.2'
7
+ spec.version = '1.1.0'
8
8
  spec.authors = ["Emil Kilhage"]
9
9
  spec.email = ["emil.kilhage@glooby.com"]
10
10
 
@@ -5,10 +5,31 @@ namespace :supervisord do
5
5
  execute "supervisorctl reload"
6
6
  end
7
7
  end
8
- desc 'Restarts supervisord'
8
+
9
+ desc 'Restart supervisord process'
9
10
  task :restart do
10
11
  on roles fetch(:supervisord_restart_roles) do
11
- execute "supervisorctl restart"
12
+ fetch(:supervisord_processes).each do |process|
13
+ execute "supervisorctl restart #{process}"
14
+ end
15
+ end
16
+ end
17
+
18
+ desc 'Start supervisord process'
19
+ task :start do
20
+ on roles fetch(:supervisord_restart_roles) do
21
+ fetch(:supervisord_processes).each do |process|
22
+ execute "supervisorctl start #{process}"
23
+ end
24
+ end
25
+ end
26
+
27
+ desc 'Stop supervisord process'
28
+ task :stop do
29
+ on roles fetch(:supervisord_restart_roles) do
30
+ fetch(:supervisord_processes).each do |process|
31
+ execute "supervisorctl stop #{process}"
32
+ end
12
33
  end
13
34
  end
14
35
  end
@@ -17,5 +38,6 @@ namespace :load do
17
38
  task :defaults do
18
39
  set :supervisord_reload_roles, :app
19
40
  set :supervisord_restart_roles, :app
41
+ set :supervisord_processes, ['all']
20
42
  end
21
43
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-supervisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Kilhage
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-22 00:00:00.000000000 Z
11
+ date: 2018-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.0.0
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.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.10'
34
34
  type: :development
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: '1.10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
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: '10.0'
55
55
  description: supervisord support for Capistrano 3.x
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
63
  - CODE_OF_CONDUCT.md
64
64
  - Gemfile
65
65
  - Gemfile.lock
@@ -82,17 +82,17 @@ require_paths:
82
82
  - lib
83
83
  required_ruby_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - ! '>='
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - ! '>='
90
+ - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.4.3
95
+ rubygems_version: 2.5.2
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: supervisord support for Capistrano 3.x