tomo 1.13.0 → 1.14.1
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/LICENSE.txt +1 -1
- data/lib/tomo/cli/rules.rb +3 -3
- data/lib/tomo/cli.rb +8 -2
- data/lib/tomo/colors.rb +1 -1
- data/lib/tomo/commands/init.rb +1 -1
- data/lib/tomo/commands/tasks.rb +1 -1
- data/lib/tomo/console/menu.rb +1 -1
- data/lib/tomo/plugin/rails/helpers.rb +6 -0
- data/lib/tomo/plugin/rbenv/tasks.rb +1 -1
- data/lib/tomo/runtime/execution_plan.rb +1 -1
- data/lib/tomo/testing/ubuntu_setup.sh +2 -1
- data/lib/tomo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f16c0351ed9e2f276d92b392f009490cf225c94adf318836a6556b6e92ff913b
|
|
4
|
+
data.tar.gz: b10e3f521efba3854ce8985680023d1e0fd79fb6e6be3acfe46e6a37a45cbd45
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 880d8a3505f6f5435b2e2af09d967b5121b906f001caf71bb5cf10f43f13f0dc6802b6fb1f4a0335f3ca06ab855b8bf4995f7105b52ea6bf0a277f7f79ffef1c
|
|
7
|
+
data.tar.gz: 17fdc0e24d0b08f638bbeeddee49221d77dbd8c7767f3c0a79ce9378bc8c20ac86c997e52ce98267463e015a3559323ee0ff1551225772f53071623f99c29c26
|
data/LICENSE.txt
CHANGED
data/lib/tomo/cli/rules.rb
CHANGED
|
@@ -12,9 +12,9 @@ module Tomo
|
|
|
12
12
|
}.freeze
|
|
13
13
|
|
|
14
14
|
OPTION_PATTERNS = {
|
|
15
|
-
/\A--\[no-\]([
|
|
16
|
-
/\A(-[a-z]), (--[
|
|
17
|
-
/\A(-[a-z]), (--[
|
|
15
|
+
/\A--\[no-\]([-a-z]+)\z/ => :on_off_switch_rule,
|
|
16
|
+
/\A(-[a-z]), (--[-a-z]+)\z/ => :basic_switch_rule,
|
|
17
|
+
/\A(-[a-z]), (--[-a-z]+) [A-Z=_-]+\z/ => :value_switch_rule
|
|
18
18
|
}.freeze
|
|
19
19
|
|
|
20
20
|
private_constant :ARG_PATTERNS, :OPTION_PATTERNS
|
data/lib/tomo/cli.rb
CHANGED
|
@@ -36,6 +36,10 @@ module Tomo
|
|
|
36
36
|
"completion-script" => Tomo::Commands::CompletionScript
|
|
37
37
|
}.freeze
|
|
38
38
|
|
|
39
|
+
COMMAND_ALIASES = {
|
|
40
|
+
"-T" => Tomo::Commands::Tasks
|
|
41
|
+
}.freeze
|
|
42
|
+
|
|
39
43
|
def call(argv)
|
|
40
44
|
prepare_completions(argv)
|
|
41
45
|
command, command_name = lookup_command(argv)
|
|
@@ -56,12 +60,14 @@ module Tomo
|
|
|
56
60
|
end
|
|
57
61
|
|
|
58
62
|
def lookup_command(argv)
|
|
63
|
+
commands = COMMANDS.merge(COMMAND_ALIASES)
|
|
64
|
+
|
|
59
65
|
command_name = argv.first unless Completions.active? && argv.length == 1
|
|
60
|
-
command_name = Abbrev.abbrev(
|
|
66
|
+
command_name = Abbrev.abbrev(commands.keys)[command_name]
|
|
61
67
|
argv.shift if command_name
|
|
62
68
|
|
|
63
69
|
command_name = "run" if command_name.nil? && task_format?(argv.first)
|
|
64
|
-
command =
|
|
70
|
+
command = commands[command_name] || Tomo::Commands::Default
|
|
65
71
|
[command, command_name]
|
|
66
72
|
end
|
|
67
73
|
|
data/lib/tomo/colors.rb
CHANGED
data/lib/tomo/commands/init.rb
CHANGED
|
@@ -29,7 +29,7 @@ module Tomo
|
|
|
29
29
|
assert_no_tomo_project!
|
|
30
30
|
|
|
31
31
|
app = args.first || current_dir_name || "default"
|
|
32
|
-
app = app.gsub(/([^\w
|
|
32
|
+
app = app.gsub(/([^\w-]|_)+/, "_").downcase
|
|
33
33
|
FileUtils.mkdir_p(".tomo/plugins")
|
|
34
34
|
|
|
35
35
|
# TODO: use a template for this file
|
data/lib/tomo/commands/tasks.rb
CHANGED
data/lib/tomo/console/menu.rb
CHANGED
|
@@ -44,7 +44,7 @@ module Tomo::Plugin::Rbenv
|
|
|
44
44
|
|
|
45
45
|
def ruby_installed?(version)
|
|
46
46
|
versions = remote.capture("rbenv versions", raise_on_error: false)
|
|
47
|
-
if versions.
|
|
47
|
+
if versions.match?(/^\*?\s*#{Regexp.quote(version)}\s/)
|
|
48
48
|
logger.info("Ruby #{version} is already installed.")
|
|
49
49
|
return true
|
|
50
50
|
end
|
|
@@ -17,7 +17,8 @@ touch /var/lib/systemd/linger/deployer
|
|
|
17
17
|
|
|
18
18
|
# Packages needed for ruby, etc.
|
|
19
19
|
apt-get -y update
|
|
20
|
-
apt-get -y install build-essential
|
|
20
|
+
apt-get -y install build-essential pkg-config git-core curl locales \
|
|
21
|
+
libffi-dev libreadline-dev libsqlite3-dev libssl-dev libyaml-dev zlib1g-dev
|
|
21
22
|
|
|
22
23
|
apt-get -y install tzdata \
|
|
23
24
|
-o DPkg::options::="--force-confdef" \
|
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: 1.
|
|
4
|
+
version: 1.14.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Brictson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-01-01 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
|
|
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
189
189
|
- !ruby/object:Gem::Version
|
|
190
190
|
version: '0'
|
|
191
191
|
requirements: []
|
|
192
|
-
rubygems_version: 3.
|
|
192
|
+
rubygems_version: 3.4.1
|
|
193
193
|
signing_key:
|
|
194
194
|
specification_version: 4
|
|
195
195
|
summary: A friendly CLI for deploying Rails apps ✨
|