capistrano-nomad 0.12.2 → 0.12.3
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/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/capistrano-nomad.gemspec +1 -1
- data/lib/capistrano/nomad/helpers/dsl.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89b75d3c252d55a0e4c8f9ffcca21f49092bbdbd35a0bdb4c7f382b8a6a2e9f0
|
4
|
+
data.tar.gz: 753c67433f965fb35550c8c61e0bf3102b20bf29aba48de00757a19068310aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc425ee048f8c90dc9fe962815689eafc8edce97ae3523c3c53586f377825cd660cd15e68a35d343c51f520502f3f93a2880570dd8f9c2c46f1f99c96634db9d
|
7
|
+
data.tar.gz: 4ddf88946fd7dbbde8fcd9e3420c2b044957e1d9a16d353e29ea3050108ce1db648a918ec588a5c3af1c6f33bd749124b1ad7c9416db12317569281a74d4825d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -99,7 +99,7 @@ nomad_docker_image_type :restic,
|
|
99
99
|
|
100
100
|
# Jobs
|
101
101
|
nomad_job :backend, docker_image_types: [:backend], var_files: [:rails]
|
102
|
-
nomad_job :frontend
|
102
|
+
nomad_job :frontend, console_command: "/bin/bash"
|
103
103
|
nomad_job :postgres, docker_image_types: [:postgres]
|
104
104
|
nomad_job :redis, docker_image_types: [:redis], tags: [:redis]
|
105
105
|
nomad_job :"traefik-default", template: :admin,
|
@@ -150,7 +150,7 @@ Open console
|
|
150
150
|
```shell
|
151
151
|
cap production nomad:app:console
|
152
152
|
cap production nomad:app:console TASK=custom-task-name
|
153
|
-
cap production nomad:analytics:grafana:console
|
153
|
+
cap production nomad:analytics:grafana:console CMD=/bin/bash
|
154
154
|
```
|
155
155
|
|
156
156
|
Display logs
|
data/capistrano-nomad.gemspec
CHANGED
@@ -141,7 +141,8 @@ def nomad_job(name, attributes = {})
|
|
141
141
|
|
142
142
|
desc("Open console to #{description_name} job. Specify task with TASK, command with CMD")
|
143
143
|
task(:console) do
|
144
|
-
|
144
|
+
job_options = capistrano_nomad_fetch_job_options(name, namespace: namespace)
|
145
|
+
command = ENV["COMMAND"].presence || ENV["CMD"].presence || job_options[:console_command] || "/bin/sh"
|
145
146
|
|
146
147
|
capistrano_nomad_exec_within_job(name, command, namespace: namespace, task: ENV["TASK"])
|
147
148
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-nomad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Hu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|