kamal 1.7.0 → 1.7.1

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: 30a8c6964442e363d08edf8ad8c8b5ae835308392b330ec9e1ba8c659916bb04
4
- data.tar.gz: fce971fac71c529d90bebf6ae1b28fb617d8c34a18cc7d244e0a845238891f22
3
+ metadata.gz: a33d6d0c371102cfe47ba0b15f51059aa1d955667edbfbad137d7a5a56865893
4
+ data.tar.gz: 065db28e7bfcd285142aa493b4c7cb70a706dfdd58ec504e6f9e4884c35320e3
5
5
  SHA512:
6
- metadata.gz: '097ba4ef7a4956a22b89354a648319152224b48e77a8c32e0757462402508773b61d1b238b34d9b8f16f9d24c8dad12e118ba23e669b6a1388d5a09f73296925'
7
- data.tar.gz: f13f8f4dd704a559940313c245e5bde92915c77a716d01e3f69b5f825ef2c122bd840b9a9f47a4eb54f5555a87bced74dcf8c46394f53941211fdc0d66d5567b
6
+ metadata.gz: 73a6ce6d0d408024c96b84656958847044c477a9447a12d6861af7a8589f354060b4465100a1873aefa9b4141831751867de7b5181bb71e0353940291712b18d
7
+ data.tar.gz: 5c3deef19e9759abf5dc7b11a04799c53372097b32055e95543fd68a444e79056c48507646c7c1dfbc6c098a45655983d9791237a68a1c944f3c86ec7361990b
@@ -72,7 +72,7 @@ class Kamal::Cli::App::Boot
72
72
 
73
73
  def release_barrier
74
74
  if barrier.open
75
- info "First #{KAMAL.primary_role} container is healthy on #{host}, booting other roles"
75
+ info "First #{KAMAL.primary_role} container is healthy on #{host}, booting any other roles"
76
76
  end
77
77
  end
78
78
 
@@ -87,7 +87,7 @@ class Kamal::Cli::App::Boot
87
87
 
88
88
  def close_barrier
89
89
  if barrier.close
90
- info "First #{KAMAL.primary_role} container is unhealthy on #{host}, not booting other roles"
90
+ info "First #{KAMAL.primary_role} container is unhealthy on #{host}, not booting any other roles"
91
91
  error capture_with_info(*app.logs(version: version))
92
92
  error capture_with_info(*app.container_health_log(version: version))
93
93
  end
data/lib/kamal/cli/app.rb CHANGED
@@ -14,7 +14,7 @@ class Kamal::Cli::App < Kamal::Cli::Base
14
14
  end
15
15
 
16
16
  # Primary hosts and roles are returned first, so they can open the barrier
17
- barrier = Kamal::Cli::Healthcheck::Barrier.new if KAMAL.roles.many?
17
+ barrier = Kamal::Cli::Healthcheck::Barrier.new
18
18
 
19
19
  on(KAMAL.hosts, **KAMAL.boot_strategy) do |host|
20
20
  KAMAL.roles_on(host).each do |role|
@@ -11,6 +11,7 @@ class Kamal::Cli::Main < Kamal::Cli::Base
11
11
 
12
12
  say "Evaluate and push env files...", :magenta
13
13
  invoke "kamal:cli:main:envify", [], invoke_options
14
+ invoke "kamal:cli:env:push", [], invoke_options
14
15
 
15
16
  invoke "kamal:cli:accessory:boot", [ "all" ], invoke_options
16
17
  deploy
@@ -0,0 +1,19 @@
1
+ class Kamal::Configuration::Validator::Alias < Kamal::Configuration::Validator
2
+ def validate!
3
+ super
4
+
5
+ name = context.delete_prefix("aliases/")
6
+
7
+ if name !~ /\A[a-z0-9_-]+\z/
8
+ error "Invalid alias name: '#{name}'. Must only contain lowercase letters, alphanumeric, hyphens and underscores."
9
+ end
10
+
11
+ if Kamal::Cli::Main.original_commands.include?(name)
12
+ error "Alias '#{name}' conflicts with a built-in command."
13
+ end
14
+
15
+ if config["command"].empty?
16
+ error "Alias '#{name}': command is required."
17
+ end
18
+ end
19
+ end
data/lib/kamal/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kamal
2
- VERSION = "1.7.0"
2
+ VERSION = "1.7.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kamal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-18 00:00:00.000000000 Z
11
+ date: 2024-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -314,6 +314,7 @@ files:
314
314
  - lib/kamal/configuration/validation.rb
315
315
  - lib/kamal/configuration/validator.rb
316
316
  - lib/kamal/configuration/validator/accessory.rb
317
+ - lib/kamal/configuration/validator/alias.rb
317
318
  - lib/kamal/configuration/validator/builder.rb
318
319
  - lib/kamal/configuration/validator/env.rb
319
320
  - lib/kamal/configuration/validator/registry.rb