tomo 1.15.1 → 1.17.0

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
  SHA256:
3
- metadata.gz: e08c46b7da961cb96428f331a4d87af1fbf268c5a59b1dc129a55e469aca235d
4
- data.tar.gz: 856bc5e3e24a905d464a50f8af236992aa85d5e8f024a0b17fbb59991db815f5
3
+ metadata.gz: 6202b071b5584a5fc5b2db693130e5160585b784822b2b220ff3685c4272f53c
4
+ data.tar.gz: 6c35312e003c7c00153a7ddf8d5c2761f19b9c16aa72d8f74b271f25b5f1d69c
5
5
  SHA512:
6
- metadata.gz: 050dfde517f1372eceaa32244e40f61dc689476ee2722b6b0e0cd3b52faa8a78df5c487a3c97753c6cb754696617b0ac4249b71218a7abbaa3f42ae270f902e2
7
- data.tar.gz: '0589328cb0d63507ca917b69b298a50c0969b517e8eff3ccbab64b37bb18d81cd079f092a3c65b3993b1712a0e63b646a6b16514dd9ea1e12683106b3042f0d8'
6
+ metadata.gz: 3c1a3a5edc2e67bd5d1aa77231534ca36d379214a9d4fade127d81ae810cfd75137d600f8018c44d171c41a6d0d6abacbc2986cef629de661747fd2199997f4d
7
+ data.tar.gz: efd002dc923b18b4aa48f98d2fa79069c1713fbc604614a68f0fe1b9bc0477de591b83a280edfe1ea2c8fcf398408394a095bd56d8fab27f58ddba7c5748d2d9
data/lib/tomo/host.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Tomo
2
2
  class Host
3
- PATTERN = /^(?:(\S+)@)?(\S*?)$/.freeze
3
+ PATTERN = /^(?:(\S+)@)?(\S*?)$/
4
4
  private_constant :PATTERN
5
5
 
6
6
  attr_reader :address, :log_prefix, :user, :port, :roles, :as_privileged
@@ -3,7 +3,7 @@ require "securerandom"
3
3
 
4
4
  module Tomo::Plugin::Core
5
5
  class Tasks < Tomo::TaskLibrary
6
- RELEASE_REGEXP = /\d{14}/.freeze
6
+ RELEASE_REGEXP = /\d{14}/
7
7
  private_constant :RELEASE_REGEXP
8
8
 
9
9
  def setup_directories
@@ -62,6 +62,7 @@ module Tomo::Plugin::Env
62
62
 
63
63
  remote.mkdir_p(paths.env.dirname) if original.empty?
64
64
  remote.write(text: env, to: paths.env)
65
+ remote.run("chmod", "600", paths.env) if original.empty?
65
66
  end
66
67
 
67
68
  def read_existing
@@ -13,7 +13,14 @@ StandardInput=null
13
13
  StandardOutput=syslog
14
14
  SyslogIdentifier=%n
15
15
  TimeoutStopSec=5
16
+
17
+ <% if settings[:puma_systemd_service_type].to_s == "notify" %>
18
+ Type=notify
19
+ WatchdogSec=10
20
+ <% else %>
16
21
  Type=simple
22
+ <% end %>
23
+
17
24
  WorkingDirectory=<%= paths.current %>
18
25
  # Helpful for debugging socket activation, etc.
19
26
  # Environment=PUMA_DEBUG=1
@@ -10,6 +10,7 @@ module Tomo::Plugin
10
10
  puma_port: "3000",
11
11
  puma_systemd_service: "puma_%{application}.service",
12
12
  puma_systemd_socket: "puma_%{application}.socket",
13
+ puma_systemd_service_type: "notify",
13
14
  puma_systemd_service_path: ".config/systemd/user/%{puma_systemd_service}",
14
15
  puma_systemd_socket_path: ".config/systemd/user/%{puma_systemd_socket}",
15
16
  puma_systemd_service_template_path: File.expand_path("puma/systemd/service.erb", __dir__),
data/lib/tomo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tomo
2
- VERSION = "1.15.1".freeze
2
+ VERSION = "1.17.0".freeze
3
3
  end
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: 1.15.1
4
+ version: 1.17.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: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2023-06-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Tomo is a feature-rich deployment tool that contains everything you need
14
14
  to deploy a basic Rails app out of the box. It has an opinionated, production-tested
@@ -182,14 +182,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
183
  - - ">="
184
184
  - !ruby/object:Gem::Version
185
- version: '2.6'
185
+ version: '3.0'
186
186
  required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  requirements:
188
188
  - - ">="
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.4.10
192
+ rubygems_version: 3.4.13
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: A friendly CLI for deploying Rails apps ✨