focus_common 0.0.1 → 0.0.2

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: 87070b1cd6672b0cd25e6ca313c18317335215a3
4
- data.tar.gz: f5525b48728784dc5745a32f06403b8a537628f0
3
+ metadata.gz: 515e0d24e0dbb77aeb8e11135e9b1a241c8eb57c
4
+ data.tar.gz: 402482fa00cf2edc78e23146d4a287b4060195e3
5
5
  SHA512:
6
- metadata.gz: 2131129582da5f67c48da27f2b1663159dc9184be60965c06b6a3317123d8ed6db8cc1cdac929fcaa1d7fbda3179537eb190774ca36c4d0f6ed4cdda091d0efb
7
- data.tar.gz: 42496fb9b0a5e03c9ef4b0e178d47b5606245a5410b934150c2d6dba4d6f042dfa50a2144c187450f3e5855a14096af32a81bcdf3cb561f68886d5c596fff576
6
+ metadata.gz: cd8d8d042421fa286fc97beffee421d43d830985963ff8ff8d83d69374cf6222d6e88d96561bf789b7b36078e564a82ebcf4348d4687ce9922968af76ae29fc7
7
+ data.tar.gz: 660545e1ba7657395faf069ff9277641d08760e31ef677252a9f128edcb102cac91d84ac4eab78ccc5bec0e5709edf2f58adcc4811bf5f41103d6ded3cdbae4e
@@ -2,7 +2,7 @@ namespace :systemd do
2
2
 
3
3
  [:start, :stop, :restart].each do |cmd|
4
4
  task "app_#{cmd}" do
5
- on roles(:app) do
5
+ on roles(:app), in: :sequence, wait: 5 do
6
6
  within release_path do
7
7
  execute "sudo systemctl #{cmd} rails_#{fetch(:application)}"
8
8
  end
@@ -10,7 +10,7 @@ namespace :systemd do
10
10
  end
11
11
 
12
12
  task "sidekiq_#{cmd}" do
13
- on roles(:app) do
13
+ on roles(:app), in: :sequence, wait: 5 do
14
14
  within release_path do
15
15
  execute "sudo systemctl #{cmd} sidekiq_#{fetch(:application)}"
16
16
  end
@@ -20,3 +20,27 @@ namespace :systemd do
20
20
 
21
21
  end
22
22
 
23
+ namespace :thin do
24
+ [:start, :stop, :restart].each do |cmd|
25
+ task "#{cmd}" do
26
+ on roles(:app), in: :sequence, wait: 5 do
27
+ within release_path do
28
+ with rails_env: fetch(:rails_env) do
29
+ execute :bundle, "exec", "thin", cmd, "-C", "config/thin.yml"
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+
37
+
38
+ namespace :helpers do
39
+ task :test do
40
+ on roles(:app) do
41
+ within release_path do
42
+ execute :echo, '$STAGE'
43
+ end
44
+ end
45
+ end
46
+ end
@@ -1,4 +1,4 @@
1
1
  module FocusCommon
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
4
4
 
@@ -0,0 +1,8 @@
1
+ build:
2
+ gem build focus_common.gemspec
3
+
4
+ upload:
5
+ gem push *.gem
6
+
7
+ clear:
8
+ rm *.gem
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: focus_common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - linjunhalida
@@ -26,6 +26,7 @@ files:
26
26
  - lib/focus_common.rb
27
27
  - lib/focus_common/capistrano.rb
28
28
  - lib/focus_common/version.rb
29
+ - makefile
29
30
  homepage: https://github.com/halida/focus_common
30
31
  licenses:
31
32
  - LGPL-3.0