tomo 1.8.1 → 1.9.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: f097a0641bd9a692351f6ab9fa10b2b2a7b4d6a5df809b19821c644ad1491044
4
- data.tar.gz: 31706e6cec01be45c4e4eb71b1ba6666ce9ec63b197b78af69e1b4b08611eff7
3
+ metadata.gz: b347feb8b896066cf3f8eaac7cf198ec33d6db5bc20cb38184d56663c598e5bb
4
+ data.tar.gz: 0ba677e51d1801797e2a2606151a60e5d9efa83399e4e460c11d11e2266ef33f
5
5
  SHA512:
6
- metadata.gz: 3b53ec01d9d61a5e2238ad82ea786f8ff9a4747dd87459f8ed05a57c400ebd5694b68c5e1bc50e52dedbf0318a58d2f44805eb6a2dd905349330bd1dd6148ae1
7
- data.tar.gz: 1ddf5313df3b5226d311c32f828405242d431e3a5869d61ac091563a1ee06ff844f533afa07d4b78ba03ac24cb7d093625ec6ef833dd3755456016832bb51320
6
+ metadata.gz: 00f7909c1c5e127befd071815bd291737b7a20007f81fff555303f3f0bfeca39b64170249939f90605442c1f14f34b304c5ec2d464fa83f108fc14a0214bffb8
7
+ data.tar.gz: f5e0b06636a553137f534a50efeb1b3165033e3099f646f40a597e7df9f6d07d3beb90716b712a0c20d364db7cfcf368e58fbafa0071185b3bbc68b75d7a1fbc
data/lib/tomo/error.rb CHANGED
@@ -15,8 +15,7 @@ module Tomo
15
15
  def debug_suggestion
16
16
  return if Tomo.debug?
17
17
 
18
- "For more troubleshooting info, run tomo again using the "\
19
- "#{blue('--debug')} option."
18
+ "For more troubleshooting info, run tomo again using the #{blue('--debug')} option."
20
19
  end
21
20
  end
22
21
  end
@@ -5,6 +5,7 @@ module Tomo::Plugin
5
5
  extend Tomo::PluginDSL
6
6
 
7
7
  defaults bashrc_path: ".bashrc",
8
+ nodenv_install_yarn: true,
8
9
  nodenv_node_version: nil,
9
10
  nodenv_yarn_version: nil
10
11
 
@@ -39,11 +39,14 @@ module Tomo::Plugin::Nodenv
39
39
  end
40
40
 
41
41
  def install_yarn
42
- version = settings[:nodenv_yarn_version]
43
- return remote.run "npm i -g yarn@#{version.shellescape}" if version
42
+ unless settings[:nodenv_install_yarn]
43
+ logger.info ":nodenv_install_yarn is false; skipping yarn installation."
44
+ return
45
+ end
44
46
 
45
- logger.info "No :nodenv_yarn_version specified; "\
46
- "skipping yarn installation."
47
+ version = settings[:nodenv_yarn_version]
48
+ yarn_spec = version ? "yarn@#{version.shellescape}" : "yarn"
49
+ remote.run "npm i -g #{yarn_spec}"
47
50
  end
48
51
 
49
52
  def node_installed?(version)
@@ -18,7 +18,7 @@ set deploy_to: "/var/www/%{application}"
18
18
  set rbenv_ruby_version: <%= RUBY_VERSION.inspect %>
19
19
  <% end -%>
20
20
  set nodenv_node_version: <%= node_version&.inspect || "nil # FIXME" %>
21
- set nodenv_yarn_version: <%= yarn_version.inspect %>
21
+ set nodenv_install_yarn: <%= yarn_version ? "true" : "false" %>
22
22
  set git_url: <%= git_origin_url&.inspect || "nil # FIXME" %>
23
23
  set git_branch: <%= git_branch&.inspect || "nil # FIXME" %>
24
24
  set git_exclusions: %w[
@@ -35,6 +35,7 @@ set env_vars: {
35
35
  SECRET_KEY_BASE: :prompt
36
36
  }
37
37
  set linked_dirs: %w[
38
+ .yarn/cache
38
39
  log
39
40
  node_modules
40
41
  public/assets
data/lib/tomo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tomo
2
- VERSION = "1.8.1".freeze
2
+ VERSION = "1.9.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.8.1
4
+ version: 1.9.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: 2021-05-08 00:00:00.000000000 Z
11
+ date: 2021-08-07 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
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.2.16
191
+ rubygems_version: 3.2.24
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: A friendly CLI for deploying Rails apps ✨