dcs-best-practices 0.0.2 → 0.0.3

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
  SHA256:
3
- metadata.gz: 65d3640d185d9862b93c349e9dc0348792f66a52210c156659e55e266860ddd3
4
- data.tar.gz: 222cb4bd0306524531e8e3be41d5d7ce31d7a00baad00f6a1cc8e0384c65672f
3
+ metadata.gz: 94702c111325b55e95b70abca84e5eb8b8dd3e5a785de59f44dca319108f9b60
4
+ data.tar.gz: 94ccec43f7d08bb9691104ac9078bec79444fb97001d62fb47f841f62acbe478
5
5
  SHA512:
6
- metadata.gz: 890c674b0783ef8bf32d39f27159689a7ed90bb8189f2240b878801ea4499bd5d31010ba2998b950593d504315308394936f66c35c24dccca05486bba7d9d0c5
7
- data.tar.gz: 5e9fb115016fe0df91ffbbd624665b4a0224edc2a3750ce6d5ac6d2fdb37fc82e97a7df36bc8526ddd18c8ac0e92c8108b31b4665318ddf8b4197d6c5eb1fba7
6
+ metadata.gz: 74e6569ce7900907b9dcef60464728f100c393a09cf00dbfbd73f791288104579c1cc459ac3ef5e3126b94fd925eac8865f4beb46a7167e9cee7d70cfb7c8f5a
7
+ data.tar.gz: b5c15ce312e4225ae367eb68f9b6ab05ec72448bc8c931795224305df1d1545cecfc5b074b93680c66fcf29f8f6d6a218735d97539af8a478d4eceed8bfe6a94
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_dependency 'capistrano-rails', '~> 1.4', '>= 1.4.0'
37
37
  spec.add_dependency 'capistrano-rails-console', '~> 2.3', '>= 2.3.0'
38
38
  spec.add_dependency 'capistrano-rvm', '~> 0.1', '>= 0.1.0'
39
+ spec.add_dependency 'capistrano-sidekiq', '~> 1.0', '>= 1.0.0'
39
40
  spec.add_dependency 'capistrano3-puma', '~> 4.0', '>= 4.0.0'
40
41
  spec.add_dependency 'figaro', '~> 1.1', '>= 1.1.1'
41
42
  spec.add_dependency 'puma', '~> 4.1', '>= 4.1.0'
@@ -30,10 +30,6 @@ namespace :load do
30
30
 
31
31
  set :assets_roles, %i[web app db]
32
32
 
33
- set :sidekiq_start_cmd, "cd #{fetch(:deploy_to)}/current; #{fetch(:bundle_cmd)} exec sidekiq " \
34
- '--index 0 -C config/sidekiq.yml --environment production --daemon'
35
- set :sidekiq_stop_cmd, "kill -QUIT `cat #{fetch(:sidekiq_pid)}`"
36
-
37
33
  after 'deploy:publishing', 'puma:restart'
38
34
  end
39
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DCSBestPractices
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
@@ -8,6 +8,7 @@ require 'capistrano/rails/migrations'
8
8
  require 'capistrano/rails/assets'
9
9
  require 'capistrano/puma'
10
10
  require 'capistrano/rails/console'
11
+ require 'capistrano/sidekiq'
11
12
  require 'airbrussh/capistrano'
12
13
  require 'capistrano/dcs'
13
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcs-best-practices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - DarkWater
@@ -190,6 +190,26 @@ dependencies:
190
190
  - - "~>"
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0.1'
193
+ - !ruby/object:Gem::Dependency
194
+ name: capistrano-sidekiq
195
+ requirement: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - ">="
198
+ - !ruby/object:Gem::Version
199
+ version: 1.0.0
200
+ - - "~>"
201
+ - !ruby/object:Gem::Version
202
+ version: '1.0'
203
+ type: :runtime
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: 1.0.0
210
+ - - "~>"
211
+ - !ruby/object:Gem::Version
212
+ version: '1.0'
193
213
  - !ruby/object:Gem::Dependency
194
214
  name: capistrano3-puma
195
215
  requirement: !ruby/object:Gem::Requirement
@@ -333,11 +353,9 @@ files:
333
353
  - lib/capistrano/dcs/assets.rb
334
354
  - lib/capistrano/dcs/defaults.rb
335
355
  - lib/capistrano/dcs/remote.rb
336
- - lib/capistrano/dcs/sidekiq.rb
337
356
  - lib/capistrano/dcs/ssh.rb
338
357
  - lib/capistrano/tasks/assets.cap
339
358
  - lib/capistrano/tasks/remote.cap
340
- - lib/capistrano/tasks/sidekiq.cap
341
359
  - lib/capistrano/tasks/ssh.cap
342
360
  - lib/dcs-best-pratices.rb
343
361
  - lib/dcs_best_practices/version.rb
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- load File.expand_path('../tasks/sidekiq.cap', __dir__)
@@ -1,22 +0,0 @@
1
- namespace :sidekiq do
2
- desc 'Sidekiq start'
3
- task :start do
4
- on roles(:app, :web) do
5
- execute "#{fetch(:sidekiq_start_cmd)}"
6
- end
7
- end
8
-
9
- desc 'Sidekiq Stop'
10
- task :stop do
11
- on roles(:app, :web) do
12
- execute "#{fetch(:sidekiq_stop_cmd)}"
13
- end
14
- end
15
-
16
- desc 'Sidekiq restart'
17
- task :restart do
18
- on roles(:app, :web) do
19
- execute "#{fetch(:sidekiq_stop_cmd)}; sleep 5; #{fetch(:sidekiq_start_cmd)}"
20
- end
21
- end
22
- end