capistrano-solid_queue 0.1.1 → 0.1.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -1
- data/README.md +1 -1
- data/Rakefile +5 -1
- data/lib/capistrano/solid_queue/version.rb +1 -1
- data/lib/capistrano/solid_queue.rb +3 -3
- data/lib/capistrano/tasks/solid_queue.rake +1 -1
- data/lib/capistrano/templates/solid_queue.service.erb +2 -2
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2905775672a64a7e909bf749cf7fec4496cc5a26be4a22060b9a32520842af57
|
|
4
|
+
data.tar.gz: a2f839777ed810896d596d2365499535c98b62a33cb99484e1311bb285cb9bdf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea28c7a078a31b4aaa77e98ba21fa4294dbe5fcd7381d6d87d4665ca4a72b684bc056ccb33640854eb5de98bea870d8320db3bd492d00633933e9e63076642e1
|
|
7
|
+
data.tar.gz: 4102571e45a97c1a2204a0960558239379bd0dd0b47c342d0208febd8d1d7a10d633c2122248bbc870f8bb6559bef3e05511cb847547d4449ffd51fd64a2bb6c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
|
+
|
|
1
7
|
## [Unreleased]
|
|
2
8
|
|
|
9
|
+
## [0.1.3] - 2026-11-09
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `RAILS_ENV` of the systemd service comes from `:rails_env`, falling back to `:stage` ([#9](https://github.com/codeur/capistrano-solid_queue/pull/9)). Run `cap <stage> solid_queue:install` again to update an installed service.
|
|
14
|
+
- `default_env` values in the systemd service are expanded by the server shell, as in Capistrano commands, so `RBENV_ROOT=$HOME/.rbenv` set by capistrano-rbenv becomes an absolute path ([#12](https://github.com/codeur/capistrano-solid_queue/pull/12)). Run `cap <stage> solid_queue:install` again to update an installed service.
|
|
15
|
+
- `solid_queue:quiet` no longer aborts the deploy when `systemctl` fails, as before 0.1.1 ([#10](https://github.com/codeur/capistrano-solid_queue/pull/10)).
|
|
16
|
+
- The README example with `load_hooks: false` installs `Capistrano::SolidQueue::Systemd` ([#11](https://github.com/codeur/capistrano-solid_queue/pull/11)).
|
|
17
|
+
|
|
18
|
+
## [0.1.2] - 2025-06-12
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Quiet task only runs on `:solid_queue_role` ([#5](https://github.com/codeur/capistrano-solid_queue/pull/5)) by [@bashcoder](https://github.com/bashcoder).
|
|
23
|
+
|
|
24
|
+
## [0.1.1] - 2025-03-27
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- System user mode, with `set :solid_queue_systemctl_user, :system` ([#2](https://github.com/codeur/capistrano-solid_queue/pull/2)) by [@lubosch](https://github.com/lubosch).
|
|
29
|
+
|
|
3
30
|
## [0.1.0] - 2024-04-22
|
|
4
31
|
|
|
5
|
-
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- Initial release.
|
|
35
|
+
|
|
36
|
+
[unreleased]: https://github.com/codeur/capistrano-solid_queue/compare/v0.1.3...HEAD
|
|
37
|
+
[0.1.3]: https://github.com/codeur/capistrano-solid_queue/compare/v0.1.2...v0.1.3
|
|
38
|
+
[0.1.2]: https://github.com/codeur/capistrano-solid_queue/compare/v0.1.1...v0.1.2
|
|
39
|
+
[0.1.1]: https://github.com/codeur/capistrano-solid_queue/compare/v0.1.0...v0.1.1
|
|
40
|
+
[0.1.0]: https://github.com/codeur/capistrano-solid_queue/releases/tag/v0.1.0
|
data/README.md
CHANGED
|
@@ -42,7 +42,7 @@ To prevent loading [the hooks](lib/capistrano/solid_queue.rb) of the plugin, add
|
|
|
42
42
|
```ruby
|
|
43
43
|
# Capfile
|
|
44
44
|
|
|
45
|
-
install_plugin Capistrano::SolidQueue, load_hooks: false
|
|
45
|
+
install_plugin Capistrano::SolidQueue::Systemd, load_hooks: false
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
Then run once
|
data/Rakefile
CHANGED
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
require "bundler/gem_tasks"
|
|
4
4
|
require "minitest/test_task"
|
|
5
5
|
|
|
6
|
-
Minitest::TestTask.create
|
|
6
|
+
Minitest::TestTask.create do |t|
|
|
7
|
+
# Capistrano 3.20 emits circular require warnings under Ruby 3.4 with -w.
|
|
8
|
+
# Keep test output clean until upstream fixes the warning path.
|
|
9
|
+
t.warning = false
|
|
10
|
+
end
|
|
7
11
|
|
|
8
12
|
require "standard/rake"
|
|
9
13
|
|
|
@@ -25,19 +25,19 @@ module Capistrano
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def execute_systemd(*args, raise_on_non_zero_exit: true)
|
|
28
|
-
sudo_if_needed(*systemd_command(*args), raise_on_non_zero_exit:
|
|
28
|
+
sudo_if_needed(*systemd_command(*args), raise_on_non_zero_exit: raise_on_non_zero_exit)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def sudo_if_needed(*command, raise_on_non_zero_exit: true)
|
|
32
32
|
if fetch(:solid_queue_systemctl_user) == :system
|
|
33
|
-
backend.sudo command.
|
|
33
|
+
backend.sudo command.join(" "), raise_on_non_zero_exit: raise_on_non_zero_exit
|
|
34
34
|
else
|
|
35
35
|
backend.execute(*command, raise_on_non_zero_exit: raise_on_non_zero_exit)
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
def systemd_command(*args)
|
|
40
|
-
command = [
|
|
40
|
+
command = ["/bin/systemctl"]
|
|
41
41
|
|
|
42
42
|
unless fetch(:solid_queue_systemctl_user) == :system
|
|
43
43
|
command << "--user"
|
|
@@ -60,7 +60,7 @@ namespace :solid_queue do # rubocop:disable Metrics
|
|
|
60
60
|
|
|
61
61
|
desc "Quiet solid_queue (start graceful termination)"
|
|
62
62
|
task :quiet do
|
|
63
|
-
on roles(:
|
|
63
|
+
on roles(fetch(:solid_queue_role)) do
|
|
64
64
|
plugin.execute_systemd("kill", "-s", "SIGTERM", fetch(:solid_queue_service_unit_name), raise_on_non_zero_exit: false)
|
|
65
65
|
end
|
|
66
66
|
end
|
|
@@ -4,9 +4,9 @@ After=syslog.target network.target
|
|
|
4
4
|
|
|
5
5
|
[Service]
|
|
6
6
|
Type=simple
|
|
7
|
-
Environment='RAILS_ENV=<%= fetch(:stage) %>'
|
|
7
|
+
Environment='RAILS_ENV=<%= fetch(:rails_env, fetch(:stage)) %>'
|
|
8
8
|
<% fetch(:default_env).reject{ |k, _| k.to_s == 'path' }.each do |variable, value| -%>
|
|
9
|
-
Environment='<%= variable.to_s.upcase %>=<%= value.to_s %>'
|
|
9
|
+
Environment='<%= variable.to_s.upcase %>=<%= capture(:printf, "%s", %("#{value.to_s.gsub('"', '\"')}")) %>'
|
|
10
10
|
<% end -%>
|
|
11
11
|
WorkingDirectory=<%= current_path %>
|
|
12
12
|
ExecStart=<%= capture(:echo, SSHKit.config.command_map[:bundle]).strip %> exec rake solid_queue:start
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-solid_queue
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brice TEXIER
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: capistrano
|
|
@@ -50,7 +49,6 @@ metadata:
|
|
|
50
49
|
homepage_uri: https://github.com/codeur/capistrano-solid_queue
|
|
51
50
|
source_code_uri: https://github.com/codeur/capistrano-solid_queue
|
|
52
51
|
changelog_uri: https://github.com/codeur/capistrano-solid_queue/releases
|
|
53
|
-
post_install_message:
|
|
54
52
|
rdoc_options: []
|
|
55
53
|
require_paths:
|
|
56
54
|
- lib
|
|
@@ -65,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
65
63
|
- !ruby/object:Gem::Version
|
|
66
64
|
version: '0'
|
|
67
65
|
requirements: []
|
|
68
|
-
rubygems_version:
|
|
69
|
-
signing_key:
|
|
66
|
+
rubygems_version: 4.0.16
|
|
70
67
|
specification_version: 4
|
|
71
68
|
summary: Adds support for SolidQueue to Capistrano 3.x
|
|
72
69
|
test_files: []
|