immosquare-capistrano 0.1.7 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare/capistrano/helpers.rb +0 -7
- data/lib/immosquare/capistrano/tasks/rvm.rake +2 -1
- data/lib/immosquare/capistrano/templates/puma.service.erb +1 -1
- data/lib/immosquare/capistrano/templates/sidekiq.service.erb +1 -1
- data/lib/immosquare/capistrano/templates/solid_queue.service.erb +1 -1
- data/lib/immosquare-capistrano/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 447c1e156a4e170cb1ac076835295e5bd785c408a5969d27fb896721f6081cef
|
4
|
+
data.tar.gz: 704a2355f4789b303cbb8bbba89771fc3f857df766edabf02140cf28fce1eceb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f87d7db7a4c23554173a1d086d34af47d19b7fe28825a2cc62b8344bfa92351dd0dfad4ef623b1c819cd3e56210b10e90e54d6f22cb255771198e4f7a1a5a03
|
7
|
+
data.tar.gz: 07d524944560caba863cca32b468664f519d1cd61c5b6a3a6c713cad5ff2dc70220f0e3c666a338ba7f6791443a3861face3ea962299f2afbd9123ca92807526
|
@@ -1,13 +1,6 @@
|
|
1
1
|
module Capistrano
|
2
2
|
module Immosquare
|
3
3
|
module Helpers
|
4
|
-
##============================================================##
|
5
|
-
## Get the path to bundle command
|
6
|
-
##============================================================##
|
7
|
-
def self.expanded_bundle_command
|
8
|
-
SSHKit.config.command_map[:bundle].to_s
|
9
|
-
end
|
10
|
-
|
11
4
|
def self.template_path(service)
|
12
5
|
"#{File.dirname(__FILE__)}/templates/#{service}.service.erb"
|
13
6
|
end
|
@@ -41,7 +41,8 @@ namespace :rvm do
|
|
41
41
|
## Set the RVM prefix for the commands
|
42
42
|
##============================================================##
|
43
43
|
["gem", "rake", "ruby", "bundle"].each do |command|
|
44
|
-
|
44
|
+
cmd = "#{rvm_bin_path} #{rvm_ruby_version} do"
|
45
|
+
SSHKit.config.command_map.prefix[command.to_sym] << cmd if !SSHKit.config.command_map.prefix[command.to_sym].include?(cmd)
|
45
46
|
end
|
46
47
|
|
47
48
|
|
@@ -8,7 +8,7 @@ Type=notify
|
|
8
8
|
WatchdogSec=10
|
9
9
|
User=<%= fetch(:puma_user) %>
|
10
10
|
WorkingDirectory=<%= current_path %>
|
11
|
-
ExecStart=<%= "#{
|
11
|
+
ExecStart=<%= "#{SSHKit.config.command_map[:bundle].gsub("~", "/home/#{fetch(:puma_user)}")} exec puma -e #{fetch(:stage)}" %>
|
12
12
|
ExecReload=/bin/kill -USR1 $MAINPID
|
13
13
|
|
14
14
|
|
@@ -8,7 +8,7 @@ Type=notify
|
|
8
8
|
WatchdogSec=10
|
9
9
|
User=<%= fetch(:sidekiq_user) %>
|
10
10
|
WorkingDirectory=<%= current_path %>
|
11
|
-
ExecStart=<%= "#{
|
11
|
+
ExecStart=<%= "#{SSHKit.config.command_map[:bundle].gsub("~", "/home/#{fetch(:sidekiq_user)}")} exec sidekiq -e #{fetch(:stage)}" %>
|
12
12
|
|
13
13
|
UMask=0002
|
14
14
|
|
@@ -8,7 +8,7 @@ Environment=RAILS_ENV=<%= fetch(:stage) %>
|
|
8
8
|
User=<%= fetch(:solid_queue_user) %>
|
9
9
|
WorkingDirectory=<%= current_path %>
|
10
10
|
|
11
|
-
ExecStart=<%= "#{
|
11
|
+
ExecStart=<%= "#{SSHKit.config.command_map[:bundle].gsub("~", "/home/#{fetch(:solid_queue_user)}")} exec rake solid_queue:start" %>
|
12
12
|
ExecReload=/bin/kill -HUP $MAINPID
|
13
13
|
ExecStop=/bin/kill -TERM $MAINPID
|
14
14
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: immosquare-capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- immosquare
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|