capistrano-nomad 0.13.0 → 0.13.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/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/capistrano-nomad.gemspec +1 -1
- data/lib/capistrano/nomad/helpers/nomad.rb +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c0aa853bd7a0975c5c8e83471539df99720c0cd444a69982ac33ac2dcac8d6
|
4
|
+
data.tar.gz: cbd4c9689e2dce072d016cf2b06f33677a975205a532c7a823453d87290351aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e70086e37b646337b16d9fb52a26df4535de60bce269ce079c24ff166b2d230a0e271d37c119af909bc7c76cb2450952bc821701eda0888442e56d257d5c54f
|
7
|
+
data.tar.gz: c1bad508f6ed7172b406d9cc77abe4340f1d5013d08407db68c625e331c94d81e86ee20f798742db1b83796873099bfaf5fba08440a23988c7a0cce603027612
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/capistrano-nomad.gemspec
CHANGED
@@ -384,6 +384,13 @@ def capistrano_nomad_define_group_tasks(namespace:)
|
|
384
384
|
end
|
385
385
|
end
|
386
386
|
|
387
|
+
desc("Start #{nomad_namespace} jobs")
|
388
|
+
task(:start) do
|
389
|
+
capistrano_nomad_fetch_jobs_names_by_namespace(namespace: nomad_namespace).each do |jobs_namespace, names|
|
390
|
+
capistrano_nomad_start_jobs(names, namespace: jobs_namespace)
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
387
394
|
desc("Stop #{nomad_namespace} jobs")
|
388
395
|
task(:stop) do
|
389
396
|
capistrano_nomad_fetch_jobs_names_by_namespace(namespace: nomad_namespace).each do |jobs_namespace, names|
|
@@ -539,6 +546,14 @@ def capistrano_nomad_restart_jobs(names, **options)
|
|
539
546
|
end
|
540
547
|
end
|
541
548
|
|
549
|
+
def capistrano_nomad_start_jobs(names, **options)
|
550
|
+
capistrano_nomad_ensure_options!(options)
|
551
|
+
|
552
|
+
names.each do |name|
|
553
|
+
capistrano_nomad_execute_nomad_command(:job, :start, options, name)
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
542
557
|
def capistrano_nomad_stop_jobs(names, **options)
|
543
558
|
capistrano_nomad_ensure_options!(options)
|
544
559
|
|