capistrano-clockwork 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/README.md +6 -1
- data/capistrano-clockwork.gemspec +1 -1
- data/lib/capistrano/tasks/capistrano-clockwork.rake +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9985554dbcb99d43a757c461bb6376b438373c2
|
4
|
+
data.tar.gz: bfc9d7b1acdda2411d1ddb65e03f3cbb1739ef32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1beab525475e0fe28150ba61fdeb7a95ac5dc0d1a9fc829ec4e014c9482acdba5fe476eed4b72074136881a9c8ab6a48c6c2bd8693f1fd1422d1fcc7d24e30dc
|
7
|
+
data.tar.gz: ddee63dd8fd1c0a88d2bbb7d25bbaf23c9f8102a0504955ccbfa91f5a8a87bab17b4c6a4ba322075e7e6ae3e28111fab7156962c7f3ead8f93b21da9904bed72
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -8,12 +8,15 @@ Integrate clockwork gem with capistrano
|
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
|
+
gem 'daemons'
|
11
12
|
gem 'capistrano-clockwork'
|
12
13
|
|
13
14
|
or:
|
14
15
|
|
16
|
+
gem 'daemons'
|
15
17
|
gem 'capistrano-clockwork', group: :development
|
16
18
|
|
19
|
+
Make sure the daemons gem is required in production.
|
17
20
|
And then execute:
|
18
21
|
|
19
22
|
$ bundle
|
@@ -39,14 +42,16 @@ To override the defaults just change it in your Capfile
|
|
39
42
|
```ruby
|
40
43
|
|
41
44
|
set :clockwork_file, "clockwork.rb"
|
45
|
+
|
42
46
|
```
|
43
47
|
## To remove the default hooks
|
44
48
|
|
45
49
|
By default the clockwork daemon is restarted everytime you deploy to your server
|
46
50
|
```ruby
|
47
51
|
|
48
|
-
:clockwork_default_hooks
|
52
|
+
set :clockwork_default_hooks, false
|
49
53
|
```
|
54
|
+
|
50
55
|
## Other capistrano tasks
|
51
56
|
By default the clockwork daemon is restarted everytime you deploy to your server
|
52
57
|
```bash
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'capistrano-clockwork'
|
6
|
-
s.version = '0.0.
|
6
|
+
s.version = '0.0.5'
|
7
7
|
s.date = '2015-05-12'
|
8
8
|
s.summary = "Capistrano plugin to manage clockwork"
|
9
9
|
s.description = "Capistrano plugin to manage clockwork"
|
@@ -20,7 +20,7 @@ namespace :clockwork do
|
|
20
20
|
on roles(:app) do
|
21
21
|
within release_path do
|
22
22
|
with rails_env: fetch(:rails_env) do
|
23
|
-
execute :bundle, :exec, :clockworkd, "-c #{fetch(:clockwork_file)} --pid-dir=#{cw_pid_dir} --log-dir=#{cw_log_dir} --log stop"
|
23
|
+
execute :bundle, :exec, :clockworkd, "-c #{fetch(:clockwork_file)} --dir=. --pid-dir=#{cw_pid_dir} --log-dir=#{cw_log_dir} --log stop"
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -31,7 +31,7 @@ namespace :clockwork do
|
|
31
31
|
on roles(:app) do
|
32
32
|
within release_path do
|
33
33
|
with rails_env: fetch(:rails_env) do
|
34
|
-
execute :bundle, :exec, :clockworkd, "-c #{fetch(:clockwork_file)} --pid-dir=#{cw_pid_dir} --log-dir=#{cw_log_dir} --log status"
|
34
|
+
execute :bundle, :exec, :clockworkd, "-c #{fetch(:clockwork_file)} --dir=. --pid-dir=#{cw_pid_dir} --log-dir=#{cw_log_dir} --log status"
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -42,7 +42,7 @@ namespace :clockwork do
|
|
42
42
|
on roles(:app) do
|
43
43
|
within release_path do
|
44
44
|
with rails_env: fetch(:rails_env) do
|
45
|
-
execute :bundle, :exec, :clockworkd, "-c #{fetch(:clockwork_file)} --pid-dir=#{cw_pid_dir} --log-dir=#{cw_log_dir} --log start"
|
45
|
+
execute :bundle, :exec, :clockworkd, "-c #{fetch(:clockwork_file)} --dir=. --pid-dir=#{cw_pid_dir} --log-dir=#{cw_log_dir} --log start"
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
@@ -53,7 +53,7 @@ namespace :clockwork do
|
|
53
53
|
on roles(:app) do
|
54
54
|
within release_path do
|
55
55
|
with rails_env: fetch(:rails_env) do
|
56
|
-
execute :bundle, :exec, :clockworkd, "-c #{fetch(:clockwork_file)} --pid-dir=#{cw_pid_dir} --log-dir=#{cw_log_dir} --log restart"
|
56
|
+
execute :bundle, :exec, :clockworkd, "-c #{fetch(:clockwork_file)} --dir=. --pid-dir=#{cw_pid_dir} --log-dir=#{cw_log_dir} --log restart"
|
57
57
|
end
|
58
58
|
end
|
59
59
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-clockwork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suraj Shirvankar
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.4.
|
75
|
+
rubygems_version: 2.4.8
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Capistrano plugin to manage clockwork
|