capistrano-clockwork 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ffc4dec7b8b7c5d8bf0b765deb90c2d40de67c73
4
- data.tar.gz: 2e635ff5d110ed242b1de82a19016d21f764804d
3
+ metadata.gz: bdf163848b54560cfb5e601c80079c58bf8b2047
4
+ data.tar.gz: ffe226a84a465376ead440951d33c4c832dd7513
5
5
  SHA512:
6
- metadata.gz: d14b12f5a6ed3e95b31321d24ef2f07660eb24584cba5810a984d9c84a17bfb0d8eded0f3be592724f80c1cd280d56e228693001f42c028fda550f07c5d8c977
7
- data.tar.gz: bf9e6b5dbfe3e96a44ee70c5b892bf109bf0c9011c21a8c223e6bb61deff81c9e4de6299a54fdc2bf16c6873d092b9416537b5b81edf748444eda8f3dfc88286
6
+ metadata.gz: 888fe72ee00c903f75474419fcd9fd33f8580fe72790c7f259d514a126e1cb7719c271753418802f33bd5e3c63795ec189ca4b9ac54d427c4b1cf5887b64ffe5
7
+ data.tar.gz: cdcfdf832293e20a39ad6deb5c9e4ac67a9aa5a31e33252207f469b43f43a7ecca83528edac2993afd6b00685706ab6f767ebfa9e35363cfd3275904b7da6efb
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-clockwork (0.0.2)
4
+ capistrano-clockwork (0.0.4)
5
5
  capistrano (~> 3.1)
6
+ daemons (~> 1.2)
6
7
 
7
8
  GEM
8
9
  remote: https://rubygems.org/
@@ -12,6 +13,7 @@ GEM
12
13
  rake (>= 10.0.0)
13
14
  sshkit (~> 1.3)
14
15
  colorize (0.7.7)
16
+ daemons (1.2.2)
15
17
  i18n (0.7.0)
16
18
  net-scp (1.2.1)
17
19
  net-ssh (>= 2.6.5)
@@ -0,0 +1,66 @@
1
+
2
+
3
+ # Capistrano::Clockwork
4
+
5
+ Integrate clockwork gem with capistrano
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 'capistrano-clockwork'
12
+
13
+ or:
14
+
15
+ gem 'capistrano-clockwork', group: :development
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+
22
+ ## Usage
23
+ ```ruby
24
+ # Capfile
25
+
26
+ require 'capistrano/clockwork'
27
+ ```
28
+ Configurable options, shown here with defaults:
29
+ By default the gem expects a the clockwork script to be present in the lib folder
30
+
31
+ ```ruby
32
+
33
+ :clockwork_default_hooks = true
34
+ :clockwork_file = "lib/clockwork.rb"
35
+ ```
36
+ To override the defaults just change it in your Capfile
37
+
38
+ ## To Change the clockscript location
39
+ ```ruby
40
+
41
+ set :clockwork_file, "clockwork.rb"
42
+ ```
43
+ ## To remove the default hooks
44
+
45
+ By default the clockwork daemon is restarted everytime you deploy to your server
46
+ ```ruby
47
+
48
+ :clockwork_default_hooks = false
49
+ ```
50
+ ## Other capistrano tasks
51
+ By default the clockwork daemon is restarted everytime you deploy to your server
52
+ ```bash
53
+
54
+ cap clockwork:restart #=> Restarts your clockwork instance
55
+ cap clockwork:stop #=> Stops the clockwork daemon
56
+ cap clockwork:status #=> Checks if clockwork daemon is running
57
+ cap clockwork:start #=> Starts the clockwork daemon
58
+ ```
59
+ ## Contributing
60
+
61
+ 1. Fork it
62
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
63
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
64
+ 4. Push to the branch (`git push origin my-new-feature`)
65
+ 5. Create new Pull Request
66
+ 6. Build your gem using the rake command `rake build`
@@ -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.2'
6
+ s.version = '0.0.4'
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"
@@ -16,4 +16,5 @@ Gem::Specification.new do |s|
16
16
  s.files = `git ls-files`.split($/)
17
17
  s.require_path= ["lib"]
18
18
  s.add_dependency 'capistrano', '~> 3.1'
19
+ s.add_dependency 'daemons', '~> 1.2'
19
20
  end
@@ -71,8 +71,6 @@ namespace :clockwork do
71
71
  end
72
72
 
73
73
  task :add_default_hooks do
74
- after 'deploy:stop', 'clockwork:stop'
75
- after 'deploy:start', 'clockwork:start'
76
- after 'deploy:restart', 'clockwork:restart'
74
+ after 'deploy:publishing', 'clockwork:restart'
77
75
  end
78
76
  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.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suraj Shirvankar
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: daemons
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.2'
27
41
  description: Capistrano plugin to manage clockwork
28
42
  email: surajshirvankar@gmail.com
29
43
  executables: []
@@ -32,6 +46,7 @@ extra_rdoc_files: []
32
46
  files:
33
47
  - Gemfile
34
48
  - Gemfile.lock
49
+ - README.md
35
50
  - Rakefile
36
51
  - capistrano-clockwork.gemspec
37
52
  - lib/capistrano-clockwork.rb