capistrano-nomad 0.10.5 → 0.11.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 044045d89fd983a7ecbc98532843a5fbaf28e18b48661338a41bc91279454341
4
- data.tar.gz: 4895faeb0b7e75aeb6d2e9cddd17e4509c6d60d76af97c604fd39327c06b00f8
3
+ metadata.gz: 3e158de28fdd37c5b73775d17695bfcca578130de7a3c31974c2e21b3f307b23
4
+ data.tar.gz: e35fc4592f6b9fb7acdbf636ca0566a5bf9dd3263d5f2b3ef219767b8b5724b4
5
5
  SHA512:
6
- metadata.gz: 1813cdeab5785b355c78b316ec8f36ad69b8ab0485c3ff190f318bb4058a54bb4d224b1a030cb0af6322cf600bfe54cd13fa6d4138383fb8dd76084e5ead6ec8
7
- data.tar.gz: e8d606d27e30fe7e095214d1a7eb22fef82a98aac64dc7aefb63c62a0fcfa14e0c9e7cef3809952d9cd1033960cb377b2e249ffd954220b58793ec468c017701
6
+ metadata.gz: 05d9100c9719846047404e8ddffbedaa0ef77cb5818a27c1c28f25ffcab333f4f0ce00071bb5dd252f2a023937dcb25f78e5da54213d8d54685b3ad35b6dfcfc
7
+ data.tar.gz: 92e197b7d7592cd5fc0e38a327c963a23a1f9f1715788e54d151de13092edab17ea17b6529988358184230cfb1c929367713d483129fe842f72b9872de305934
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-nomad (0.10.5)
4
+ capistrano-nomad (0.11.0)
5
5
  activesupport (<= 7.0.8)
6
6
  byebug
7
7
  capistrano (~> 3.0)
@@ -51,6 +51,7 @@ GEM
51
51
 
52
52
  PLATFORMS
53
53
  arm64-darwin-21
54
+ arm64-darwin-23
54
55
 
55
56
  DEPENDENCIES
56
57
  capistrano-nomad!
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "capistrano-nomad"
5
- spec.version = "0.10.5"
5
+ spec.version = "0.11.0"
6
6
  spec.authors = ["James Hu"]
7
7
 
8
8
  spec.summary = "Capistrano plugin for deploying and managing Nomad jobs"
@@ -52,12 +52,12 @@ def capistrano_nomad_build_file_path(parent_path, basename, kind: nil, namespace
52
52
  segments.join("/")
53
53
  end
54
54
 
55
- def capistrano_nomad_build_base_job_path(*args)
56
- capistrano_nomad_build_file_path(fetch(:nomad_jobs_path), *args)
55
+ def capistrano_nomad_build_base_job_path(*args, **options)
56
+ capistrano_nomad_build_file_path(fetch(:nomad_jobs_path), *args, **options)
57
57
  end
58
58
 
59
- def capistrano_nomad_build_base_var_file_path(*args)
60
- capistrano_nomad_build_file_path(fetch(:nomad_var_files_path), *args)
59
+ def capistrano_nomad_build_base_var_file_path(*args, **options)
60
+ capistrano_nomad_build_file_path(fetch(:nomad_var_files_path), *args, **options)
61
61
  end
62
62
 
63
63
  def capistrano_nomad_build_local_path(path)
@@ -71,12 +71,12 @@ def capistrano_nomad_build_local_path(path)
71
71
  found_local_path
72
72
  end
73
73
 
74
- def capistrano_nomad_build_local_job_path(name, *args)
75
- capistrano_nomad_build_local_path(capistrano_nomad_build_base_job_path(name, *args))
74
+ def capistrano_nomad_build_local_job_path(name, **options)
75
+ capistrano_nomad_build_local_path(capistrano_nomad_build_base_job_path(name, **options))
76
76
  end
77
77
 
78
- def capistrano_nomad_build_local_var_file_path(name, *args)
79
- capistrano_nomad_build_local_path(capistrano_nomad_build_base_var_file_path(name, *args))
78
+ def capistrano_nomad_build_local_var_file_path(name, **options)
79
+ capistrano_nomad_build_local_path(capistrano_nomad_build_base_var_file_path(name, **options))
80
80
  end
81
81
 
82
82
  def capistrano_nomad_build_release_job_path(name, **options)
@@ -114,19 +114,19 @@ def capistrano_nomad_run_nomad_command(kind, *args)
114
114
  public_send(kind, :nomad, *converted_args, raise_on_non_zero_exit: false)
115
115
  end
116
116
 
117
- def capistrano_nomad_execute_nomad_command(*args)
117
+ def capistrano_nomad_execute_nomad_command(*args, **options)
118
118
  capistrano_nomad_run_remotely do |host|
119
119
  run_interactively(host) do
120
- capistrano_nomad_run_nomad_command(:execute, *args)
120
+ capistrano_nomad_run_nomad_command(:execute, *args, **options)
121
121
  end
122
122
  end
123
123
  end
124
124
 
125
- def capistrano_nomad_capture_nomad_command(*args)
125
+ def capistrano_nomad_capture_nomad_command(*args, **options)
126
126
  output = nil
127
127
 
128
128
  capistrano_nomad_run_remotely do
129
- output = capistrano_nomad_run_nomad_command(:capture, *args)
129
+ output = capistrano_nomad_run_nomad_command(:capture, *args, **options)
130
130
  end
131
131
 
132
132
  output
@@ -374,41 +374,41 @@ def capistrano_nomad_define_group_tasks(namespace:)
374
374
  end
375
375
  end
376
376
 
377
- def capistrano_nomad_build_jobs_docker_images(names, *args)
378
- image_types = capistrano_nomad_fetch_jobs_docker_image_types(names, *args)
377
+ def capistrano_nomad_build_jobs_docker_images(names, **options)
378
+ image_types = capistrano_nomad_fetch_jobs_docker_image_types(names, **options)
379
379
 
380
380
  return false if image_types.empty?
381
381
 
382
382
  image_types.each { |i| capistrano_nomad_build_docker_image_for_type(i) }
383
383
  end
384
384
 
385
- def capistrano_nomad_push_jobs_docker_images(names, *args)
386
- image_types = capistrano_nomad_fetch_jobs_docker_image_types(names, *args)
385
+ def capistrano_nomad_push_jobs_docker_images(names, **options)
386
+ image_types = capistrano_nomad_fetch_jobs_docker_image_types(names, **options)
387
387
 
388
388
  return false if image_types.empty?
389
389
 
390
390
  image_types.each { |i| capistrano_nomad_push_docker_image_for_type(i) }
391
391
  end
392
392
 
393
- def capistrano_nomad_assemble_jobs_docker_images(names, *args)
394
- capistrano_nomad_build_jobs_docker_images(names, *args)
395
- capistrano_nomad_push_jobs_docker_images(names, *args)
393
+ def capistrano_nomad_assemble_jobs_docker_images(names, **options)
394
+ capistrano_nomad_build_jobs_docker_images(names, **options)
395
+ capistrano_nomad_push_jobs_docker_images(names, **options)
396
396
  end
397
397
 
398
- def capistrano_nomad_upload_jobs(names, *args)
398
+ def capistrano_nomad_upload_jobs(names, **options)
399
399
  # Var files can be shared between jobs so don't upload duplicates
400
- uniq_var_files = names.map { |n| capistrano_nomad_fetch_job_var_files(n, *args) }.flatten.uniq
400
+ uniq_var_files = names.map { |n| capistrano_nomad_fetch_job_var_files(n, **options) }.flatten.uniq
401
401
 
402
402
  uniq_var_files.each do |var_file|
403
403
  capistrano_nomad_upload(
404
- local_path: capistrano_nomad_build_local_var_file_path(var_file, *args),
405
- remote_path: capistrano_nomad_build_release_var_file_path(var_file, *args),
404
+ local_path: capistrano_nomad_build_local_var_file_path(var_file, **options),
405
+ remote_path: capistrano_nomad_build_release_var_file_path(var_file, **options),
406
406
  )
407
407
  end
408
408
 
409
409
  run_locally do
410
410
  names.each do |name|
411
- nomad_job_options = capistrano_nomad_fetch_job_options(name, *args)
411
+ nomad_job_options = capistrano_nomad_fetch_job_options(name, **options)
412
412
 
413
413
  # Can set job-specific ERB vars
414
414
  erb_vars = nomad_job_options[:erb_vars] || {}
@@ -417,17 +417,17 @@ def capistrano_nomad_upload_jobs(names, *args)
417
417
  file_basename = nomad_job_options[:template] || name
418
418
 
419
419
  capistrano_nomad_upload(
420
- local_path: capistrano_nomad_build_local_job_path(file_basename, *args),
421
- remote_path: capistrano_nomad_build_release_job_path(name, *args),
420
+ local_path: capistrano_nomad_build_local_job_path(file_basename, **options),
421
+ remote_path: capistrano_nomad_build_release_job_path(name, **options),
422
422
  erb_vars: erb_vars,
423
423
  )
424
424
  end
425
425
  end
426
426
  end
427
427
 
428
- def capistrano_nomad_plan_jobs(names, *args)
428
+ def capistrano_nomad_plan_jobs(names, **options)
429
429
  names.each do |name|
430
- args = [capistrano_nomad_build_release_job_path(name, *args)]
430
+ args = [capistrano_nomad_build_release_job_path(name, **options)]
431
431
 
432
432
  capistrano_nomad_execute_nomad_command(:plan, *args)
433
433
  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.10.5
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hu
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-06 00:00:00.000000000 Z
11
+ date: 2025-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Capistrano plugin for deploying and managing Nomad jobs
112
- email:
112
+ email:
113
113
  executables: []
114
114
  extensions: []
115
115
  extra_rdoc_files: []
@@ -136,7 +136,7 @@ metadata:
136
136
  allowed_push_host: https://rubygems.org
137
137
  homepage_uri: https://github.com/axsuul/capistrano-nomad
138
138
  source_code_uri: https://github.com/axsuul/capistrano-nomad
139
- post_install_message:
139
+ post_install_message:
140
140
  rdoc_options: []
141
141
  require_paths:
142
142
  - lib
@@ -151,8 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  requirements: []
154
- rubygems_version: 3.1.6
155
- signing_key:
154
+ rubygems_version: 3.3.27
155
+ signing_key:
156
156
  specification_version: 4
157
157
  summary: Capistrano plugin for deploying and managing Nomad jobs
158
158
  test_files: []