tomo-plugin-sidekiq 1.0.1 → 1.0.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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/tomo/plugin/sidekiq.rb +0 -3
- data/lib/tomo/plugin/sidekiq/tasks.rb +2 -6
- data/lib/tomo/plugin/sidekiq/version.rb +1 -1
- metadata +7 -119
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c961bfaa5cdf2475c09ff03ea87e75fe68ddfcbf87b0b50794e4e73ee8376a16
|
|
4
|
+
data.tar.gz: 85bb892c868ec53df6477245460fc1bc0b30e6261297e081069af9cc72fc32da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cce4f551031a8953bdb18b8d23e3607aaaf65888ce12a3a5e03fee74680aa3268ddebd6aa29507b7f9ce11ba6206caec58816deb578b10aba5d8086e97967fa3
|
|
7
|
+
data.tar.gz: ae9f55db2be6608b0c9d312a99a158530d9756eda159b7fd1487533f5d3eb92fdad5e2a72979d1ed8ca481b228445bb1a6f31d94d20608e00f046a305a232557
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://rubygems.org/gems/tomo-plugin-sidekiq)
|
|
4
4
|
[](https://travis-ci.org/mattbrictson/tomo-plugin-sidekiq)
|
|
5
|
-
[](https://app.circleci.com/pipelines/github/mattbrictson/tomo-plugin-sidekiq?branch=
|
|
5
|
+
[](https://app.circleci.com/pipelines/github/mattbrictson/tomo-plugin-sidekiq?branch=main)
|
|
6
6
|
[](https://codeclimate.com/github/mattbrictson/tomo-plugin-sidekiq)
|
|
7
7
|
|
|
8
8
|
This is a [tomo](https://github.com/mattbrictson/tomo) plugin that provides tasks for managing [sidekiq](https://github.com/mperham/sidekiq) via [systemd](https://en.wikipedia.org/wiki/Systemd), based on the recommendations in the sidekiq documentation. This plugin assumes that you are also using the tomo `rbenv` and `env` plugins, and that you are using a systemd-based Linux distribution like Ubuntu 18 LTS.
|
|
@@ -64,7 +64,7 @@ $ loginctl enable-linger <DEPLOY_USER>
|
|
|
64
64
|
| --------------------- | ------- |
|
|
65
65
|
| `sidekiq_systemd_service` | Name of the systemd unit that will be used to manage sidekiq <br>**Default:** `"sidekiq_%{application}.service"` |
|
|
66
66
|
| `sidekiq_systemd_service_path` | Location where the systemd unit will be installed <br>**Default:** `".config/systemd/user/%{sidekiq_systemd_service}"` |
|
|
67
|
-
| `sidekiq_systemd_service_template_path` | Local path to the ERB template that will be used to create the systemd unit <br>**Default:** [service.erb](https://github.com/mattbrictson/tomo-plugin-sidekiq/blob/
|
|
67
|
+
| `sidekiq_systemd_service_template_path` | Local path to the ERB template that will be used to create the systemd unit <br>**Default:** [service.erb](https://github.com/mattbrictson/tomo-plugin-sidekiq/blob/main/lib/tomo/plugin/sidekiq/service.erb) |
|
|
68
68
|
|
|
69
69
|
## Tasks
|
|
70
70
|
|
data/lib/tomo/plugin/sidekiq.rb
CHANGED
|
@@ -6,10 +6,7 @@ module Tomo::Plugin::Sidekiq
|
|
|
6
6
|
extend Tomo::PluginDSL
|
|
7
7
|
|
|
8
8
|
tasks Tomo::Plugin::Sidekiq::Tasks
|
|
9
|
-
|
|
10
|
-
# rubocop:disable Layout/LineLength
|
|
11
9
|
defaults sidekiq_systemd_service: "sidekiq_%{application}.service",
|
|
12
10
|
sidekiq_systemd_service_path: ".config/systemd/user/%{sidekiq_systemd_service}",
|
|
13
11
|
sidekiq_systemd_service_template_path: File.expand_path("sidekiq/service.erb", __dir__)
|
|
14
|
-
# rubocop:enable Layout/LineLength
|
|
15
12
|
end
|
|
@@ -19,9 +19,7 @@ module Tomo::Plugin::Sidekiq
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def log
|
|
22
|
-
remote.attach "journalctl", "-q",
|
|
23
|
-
raw("--user-unit=#{service.name.shellescape}"),
|
|
24
|
-
*settings[:run_args]
|
|
22
|
+
remote.attach "journalctl", "-q", raw("--user-unit=#{service.name.shellescape}"), *settings[:run_args]
|
|
25
23
|
end
|
|
26
24
|
|
|
27
25
|
private
|
|
@@ -35,9 +33,7 @@ module Tomo::Plugin::Sidekiq
|
|
|
35
33
|
end
|
|
36
34
|
|
|
37
35
|
def linger_must_be_enabled!
|
|
38
|
-
linger_users = remote.list_files(
|
|
39
|
-
"/var/lib/systemd/linger", raise_on_error: false
|
|
40
|
-
)
|
|
36
|
+
linger_users = remote.list_files("/var/lib/systemd/linger", raise_on_error: false)
|
|
41
37
|
return if dry_run? || linger_users.include?(remote.host.user)
|
|
42
38
|
|
|
43
39
|
die <<~ERROR.strip
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tomo-plugin-sidekiq
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Brictson
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tomo
|
|
@@ -24,119 +24,7 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.0'
|
|
27
|
-
|
|
28
|
-
name: bundler
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2.0'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '2.0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: minitest
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '5.11'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '5.11'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: minitest-ci
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '3.4'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '3.4'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: minitest-reporters
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '1.3'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '1.3'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rake
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - "~>"
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '13.0'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - "~>"
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '13.0'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: rubocop
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - '='
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: 0.82.0
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - '='
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: 0.82.0
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: rubocop-minitest
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - '='
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: 0.9.0
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - '='
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: 0.9.0
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: rubocop-performance
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - '='
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: 1.5.2
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - '='
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: 1.5.2
|
|
139
|
-
description:
|
|
27
|
+
description:
|
|
140
28
|
email:
|
|
141
29
|
- opensource@mattbrictson.com
|
|
142
30
|
executables: []
|
|
@@ -157,7 +45,7 @@ metadata:
|
|
|
157
45
|
changelog_uri: https://github.com/mattbrictson/tomo-plugin-sidekiq/releases
|
|
158
46
|
source_code_uri: https://github.com/mattbrictson/tomo-plugin-sidekiq
|
|
159
47
|
homepage_uri: https://github.com/mattbrictson/tomo-plugin-sidekiq
|
|
160
|
-
post_install_message:
|
|
48
|
+
post_install_message:
|
|
161
49
|
rdoc_options: []
|
|
162
50
|
require_paths:
|
|
163
51
|
- lib
|
|
@@ -172,8 +60,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
172
60
|
- !ruby/object:Gem::Version
|
|
173
61
|
version: '0'
|
|
174
62
|
requirements: []
|
|
175
|
-
rubygems_version: 3.1.
|
|
176
|
-
signing_key:
|
|
63
|
+
rubygems_version: 3.1.4
|
|
64
|
+
signing_key:
|
|
177
65
|
specification_version: 4
|
|
178
66
|
summary: sidekiq tasks for tomo
|
|
179
67
|
test_files: []
|