tomo 0.9.0 → 0.10.0
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/lib/tomo/plugin/puma/tasks.rb +4 -2
- data/lib/tomo/testing/Dockerfile +0 -2
- data/lib/tomo/testing/docker_image.rb +0 -1
- data/lib/tomo/testing/ubuntu_setup.sh +2 -0
- data/lib/tomo/version.rb +1 -1
- metadata +2 -3
- data/lib/tomo/testing/loginctl.sh +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 95a51dfa2fc2b054bf4943e9f9e866c1d971e2892ac66996a8797c1e0deb4d50
|
|
4
|
+
data.tar.gz: c76b97ba395ee23fd4ebcd1342f18b3c30ef769dbb5ca424a7c6601b293c00aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 237cc03097bd684f9e91916f302aa7fa1da182fc68a2751ceb02fd15a5a4f4ad4c07e401e1a8047e22c61eea6eb4a5056634b1bca15cd4b1f27e83718f2f3039
|
|
7
|
+
data.tar.gz: c7de49e06993a3dbfead0e89ddc2ff29cc6b3b0697ac8141a6cc667954680fed3b3e8e8e7742ffdf259831380839120d5e338ef920ed5f27ad946d8bfa50c21b
|
|
@@ -65,8 +65,10 @@ module Tomo::Plugin::Puma
|
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
def linger_must_be_enabled!
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
linger_users = remote.list_files(
|
|
69
|
+
"/var/lib/systemd/linger", raise_on_error: false
|
|
70
|
+
)
|
|
71
|
+
return if dry_run? || linger_users.include?(remote.host.user)
|
|
70
72
|
|
|
71
73
|
die <<~ERROR.strip
|
|
72
74
|
Linger must be enabled for the #{remote.host.user} user in order for
|
data/lib/tomo/testing/Dockerfile
CHANGED
|
@@ -7,8 +7,6 @@ COPY ./custom_setup.sh ./
|
|
|
7
7
|
RUN ./custom_setup.sh
|
|
8
8
|
COPY ./systemctl.rb /usr/local/bin/systemctl
|
|
9
9
|
RUN chmod a+x /usr/local/bin/systemctl
|
|
10
|
-
COPY ./loginctl.sh /usr/local/bin/loginctl
|
|
11
|
-
RUN chmod a+x /usr/local/bin/loginctl
|
|
12
10
|
EXPOSE 22
|
|
13
11
|
EXPOSE 3000
|
|
14
12
|
CMD ["/usr/sbin/sshd", "-D"]
|
|
@@ -12,6 +12,8 @@ chown -R deployer:deployer /home/deployer/.ssh
|
|
|
12
12
|
chmod 600 /home/deployer/.ssh/authorized_keys
|
|
13
13
|
mkdir -p /var/www
|
|
14
14
|
chown deployer:deployer /var/www
|
|
15
|
+
mkdir -p /var/lib/systemd/linger
|
|
16
|
+
touch /var/lib/systemd/linger/deployer
|
|
15
17
|
|
|
16
18
|
# Packages needed for ruby, etc.
|
|
17
19
|
apt-get -y update
|
data/lib/tomo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tomo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Brictson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-10-
|
|
11
|
+
date: 2019-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -290,7 +290,6 @@ files:
|
|
|
290
290
|
- lib/tomo/testing/host_extensions.rb
|
|
291
291
|
- lib/tomo/testing/local.rb
|
|
292
292
|
- lib/tomo/testing/log_capturing.rb
|
|
293
|
-
- lib/tomo/testing/loginctl.sh
|
|
294
293
|
- lib/tomo/testing/mock_plugin_tester.rb
|
|
295
294
|
- lib/tomo/testing/mocked_exec_error.rb
|
|
296
295
|
- lib/tomo/testing/mocked_exit_error.rb
|