capistrano-nomad 0.9.0 → 0.9.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: aa62522fae2723d97c57456a2404393ab7a231b9a8b690662b819fc60f9670fd
4
- data.tar.gz: 3cc2ec3994a56a70e3bf4de01d8676849661a80f42b259079461fa7b7f60e11a
3
+ metadata.gz: e70ce696bab8b3ef8545e9f4eff59e12aa8c39a9705da8ba92a9ae0516b2534b
4
+ data.tar.gz: 8053ced9f62a0d56046cc7162f5efd20ddd9ab20e0d22a23b9e237a84db5f605
5
5
  SHA512:
6
- metadata.gz: 13de2ccba1589cce0c24add2a284d1b1932d38fb0d2ec9f1a3ed3715167d99ca9e2b181746041b59f7a89d48113e00d0608f3dd5138fd07a288db6e6bfc019c4
7
- data.tar.gz: f993181266c7eabe3580c8ebdb03bd39c0affe87415e77f099898d8753bb6eb6ef12463459c3a24b4de493cff09af51e6b0c13a85e7a767ec02b69b8d7e02e57
6
+ metadata.gz: f861c87b67f797851738b1e0a29cab2286489b6067029f9314d55a2099e9e1751bd2e0f8df3ba3ba190545ddffecbe38e086515a2a520d7f39b5900299c783d3
7
+ data.tar.gz: 62817162ccf5ed2e0c72464e5846bfcb3474964f9a3d3339565c66f58d154c53483341e955e067458398ac69c61aeeb8f698157b114c9802338468bf43d1c950
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-nomad (0.9.0)
4
+ capistrano-nomad (0.9.1)
5
5
  activesupport (<= 7.0.8)
6
6
  byebug
7
7
  capistrano (~> 3.0)
data/README.md CHANGED
@@ -131,20 +131,15 @@ cap production nomad:analytics:grafana:restart
131
131
  cap production nomad:postgres:status
132
132
  ```
133
133
 
134
- Most tasks are also available for namespace or `all`
134
+ Tasks can go by namespace or `all` namespaces, and can also be filtered by tags
135
135
 
136
136
  ```shell
137
137
  cap production nomad:analytics:deploy
138
138
  cap production nomad:analytics:upload_run
139
139
  cap production nomad:all:deploy
140
+ cap production nomad:all:deploy TAG=traefik
140
141
  cap production nomad:all:upload_run
141
- ```
142
-
143
- Filter by tags
144
-
145
- ```shell
146
- cap production nomad:all:deploy tag=traefik
147
- cap production nomad:all:upload_run tags=traefik,redis
142
+ cap production nomad:all:upload_run TAGS=traefik,redis
148
143
  ```
149
144
 
150
145
  Open console
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "capistrano-nomad"
5
- spec.version = "0.9.0"
5
+ spec.version = "0.9.1"
6
6
  spec.authors = ["James Hu"]
7
7
 
8
8
  spec.summary = "Capistrano plugin for deploying and managing Nomad jobs"
@@ -255,9 +255,9 @@ def capistrano_nomad_fetch_job_var_files(name, *args)
255
255
  end
256
256
 
257
257
  def capistrano_nomad_fetch_jobs_names_by_namespace(namespace: :all)
258
- # Can pass tags via command line (e.g. tag=foo or tags=foo,bar)
258
+ # Can pass tags via command line (e.g. TAG=foo or TAGS=foo,bar)
259
259
  tags =
260
- [ENV["tag"], ENV["tags"]].map do |tag_args|
260
+ [ENV["TAG"], ENV["TAGS"]].map do |tag_args|
261
261
  next unless tag_args.presence
262
262
 
263
263
  tag_args.split(",").map(&:presence).compact.map(&:to_sym)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-nomad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hu