capistrano-elobuff 0.1.1 → 0.1.2

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.
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "capistrano-elobuff"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = "0.1.1"
14
+ gem.version = "0.1.2"
15
15
 
16
16
  gem.add_dependency "capistrano"
17
17
  end
@@ -0,0 +1,13 @@
1
+ Capistrano::Configuration.instance.load do
2
+ require_settings :application
3
+
4
+ namespace :idleworker do
5
+ [:start, :stop, :restart, :status].each do |command|
6
+ desc "#{command.to_s.capitalize} the idleworker service"
7
+ task command, roles: :idleworker, on_no_matching_servers: :continue do
8
+ run "sudo service #{application}-idleworker #{command} || true"
9
+ end
10
+ after command, "idleworker:#{command}"
11
+ end
12
+ end
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-elobuff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -50,6 +50,7 @@ files:
50
50
  - lib/capistrano/elobuff/recipes/cron.rb
51
51
  - lib/capistrano/elobuff/recipes/database.rb
52
52
  - lib/capistrano/elobuff/recipes/foreman.rb
53
+ - lib/capistrano/elobuff/recipes/idleworker.rb
53
54
  - lib/capistrano/elobuff/recipes/logs.rb
54
55
  - lib/capistrano/elobuff/recipes/merger.rb
55
56
  - lib/capistrano/elobuff/recipes/nginx.rb