capistrano3-delayed-job 1.7.0 → 1.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1343ef016cef7cceeb2beef7d053e7de1b0b9ae
4
- data.tar.gz: a50d0ef69caa26ce53de50c9705004d832f8cc5e
3
+ metadata.gz: 416f80c1d37593a430c5083dc17c2a160636a3ca
4
+ data.tar.gz: e4e9705d47dd38c8dc055f7a460d4cd30fe42531
5
5
  SHA512:
6
- metadata.gz: 22e3842d7af5ca2ff06aa2856d152a624eb7c653c07a588b400278d793022572671137d7862968528a3530608a23ac4588885a4a92ca1966c352708fc8468ec9
7
- data.tar.gz: 9c0afda02c753670cc96221472c42a8648a56e77d49c4e9d93bc5acedee47960c2641d29736aab6492713a7a7678d32d180eb9beec8f09fa0dd9158f255a8f5d
6
+ metadata.gz: 04f03cf823bdffa22a0cb298a7258b07386a2f317060c12344ab5b2023c0584fc9edbd9a8d32ce90f49fb49d0f6dceb8ca8cb6d1ca19ddd879dc68a0bda63ebe
7
+ data.tar.gz: 8f67df63ac72805caa8426bb3c1a96435940e1bc75962048301c286572f39414e791b6149952eed535ad7c97801671aa85f861c3120d3bc296279256108231c8
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Juan Ignacio Donoso
1
+ Copyright (c) 2016 Platanus SpA
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ # MAINTAINER WANTED
2
+
3
+ If someone is using this gem on a daily basis and want to help maintain it, please let us know on the issues.
4
+ We are moving away from capistrano deployments so in the short time we are not using this gem anymore.
5
+
6
+ Thanks!
7
+
1
8
  # Capistrano::DelayedJob [![Gem Version](https://badge.fury.io/rb/capistrano3-delayed-job.png)](http://badge.fury.io/rb/capistrano3-delayed-job)
2
9
 
3
10
  Delayed Job support for Capistrano 3.x
@@ -28,9 +35,10 @@ require 'capistrano/delayed-job'
28
35
  You will get the following tasks
29
36
 
30
37
  ```ruby
31
- cap delayed_job:start # Start delayed_job service
32
- cap delayed_job:stop # Stop delayed_job service
33
- cap delayed_job:restart # Restart delayed_job service
38
+ cap delayed_job:restart # Restart the delayed_job process
39
+ cap delayed_job:start # Start the delayed_job process
40
+ cap delayed_job:status # Status of the delayed_job process
41
+ cap delayed_job:stop # Stop the delayed_job process
34
42
  ```
35
43
 
36
44
  Configurable options (copy into deploy.rb), shown here with examples:
@@ -107,7 +115,7 @@ set :delayed_job_roles, [:app, :background]
107
115
  It also adds the following hook
108
116
 
109
117
  ```ruby
110
- after 'deploy:published', 'restart' do
118
+ after 'deploy:published', 'delayed_job:restart' do
111
119
  invoke 'delayed_job:restart'
112
120
  end
113
121
  ```
@@ -133,7 +141,7 @@ set :delayed_job_pid_dir, '/tmp'
133
141
 
134
142
  ## Credits
135
143
 
136
- Thank you [contributors](https://github.com/platanus/guides/graphs/contributors)!
144
+ Thank you [contributors](https://github.com/platanus/capistrano3-delayed-job/graphs/contributors)!
137
145
 
138
146
  <img src="http://platan.us/gravatar_with_text.png" alt="Platanus" width="250"/>
139
147
 
@@ -141,4 +149,4 @@ capistrano3-delayed-job is maintained by [platanus](http://platan.us).
141
149
 
142
150
  ## License
143
151
 
144
- Guides is © 2014 platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.
152
+ capistrano3-delayed-job is © 2016 Platanus SpA. It is free software and may be redistributed under the terms specified in the LICENSE file.
@@ -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 = "capistrano3-delayed-job"
7
- spec.version = "1.7.0"
7
+ spec.version = "1.7.1"
8
8
  spec.authors = ["Juan Ignacio Donoso", "Agustin Feuerhake", "Ignacio Baixas"]
9
9
  spec.email = ["juan.ignacio@platan.us", "agustin@platan.us", "ignacio@platanus"]
10
10
  spec.summary = %q{Adds support for delayed_jobs to Capistrano 3.x}
@@ -42,6 +42,19 @@ namespace :delayed_job do
42
42
  end
43
43
  end
44
44
 
45
+ desc 'Status of the delayed_job process'
46
+ task :status do
47
+ on roles(delayed_job_roles) do
48
+ within release_path do
49
+ with rails_env: fetch(:rails_env) do
50
+ capture( :bundle, :exec, delayed_job_bin, delayed_job_args, :status ).each_line do |line|
51
+ info line
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+
45
58
  desc 'Restart the delayed_job process'
46
59
  task :restart do
47
60
  on roles(delayed_job_roles) do
@@ -53,7 +66,7 @@ namespace :delayed_job do
53
66
  end
54
67
  end
55
68
 
56
- after 'deploy:published', 'restart' do
69
+ after 'deploy:published', 'delayed_job:restart' do
57
70
  invoke 'delayed_job:restart'
58
71
  end
59
72
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-delayed-job
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Ignacio Donoso
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-04-14 00:00:00.000000000 Z
13
+ date: 2016-04-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: capistrano