capistrano-nomad 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/capistrano-nomad.gemspec +1 -1
- data/lib/capistrano/nomad/tasks/nomad.rake +4 -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: 9ab89a48a26fb135563d9685083c2ec1ae913dba51baf289b2a232407a26b01e
|
4
|
+
data.tar.gz: 85ee06cb6f05413ff54c67f0306818394f5e071a1b07fc1e2eef50016226f129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf2f8c90f6f9768f055afaed469cb1d692fa15bce243b5219ead74e9f0bc076498e2c89ed4a451ca34b46318ee6405a8bf06da342ab384013ff5466aa027b977
|
7
|
+
data.tar.gz: 6551a3d5ca81af0be6f8876ca27278592c76ecc5ecbe78494d70fa3d025a57c064e930b61876f58abaf6014c20438b6362a853ae3723a51a366272010d925b38
|
data/Gemfile.lock
CHANGED
data/capistrano-nomad.gemspec
CHANGED
@@ -12,7 +12,10 @@ namespace :nomad do
|
|
12
12
|
task :modify_namespaces do
|
13
13
|
output = capistrano_nomad_capture_nomad_command(:namespace, :list, t: "'{{range .}}{{ .Name }}|{{end}}'")
|
14
14
|
current_namespaces = output.split("|").compact.map(&:to_sym)
|
15
|
-
|
15
|
+
|
16
|
+
# If key is nil then it actually belongs to the default namespace
|
17
|
+
desired_namespaces = fetch(:nomad_jobs).keys.map { |n| n.nil? ? :default : n.to_sym }
|
18
|
+
|
16
19
|
missing_namespaces = desired_namespaces - current_namespaces
|
17
20
|
unused_namespaces = current_namespaces - desired_namespaces
|
18
21
|
|
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.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Hu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|