capistrano-nomad 0.13.1 → 0.13.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/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/capistrano-nomad.gemspec +1 -1
- data/lib/capistrano/nomad/helpers/dsl.rb +12 -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: 0ffa8354891c995cfc4b2a143d06bc36288f3ede167922dc2bdf3b5e1246281d
         | 
| 4 | 
            +
              data.tar.gz: 579819253b4ff921c1db9d15edaeaa27b6b1083966ace79aa27e75ec05e85993
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: cf1229c6a719bfcd7d18b969a96689207ad871c9300b8b33365c72c706e9ffeca679d600a46dcd8eae7dc941d147d04d7167a93faa55e89cf3ff34de4c617cef
         | 
| 7 | 
            +
              data.tar.gz: 681e068ea81c408975cecc04ec59be55d187d8836e4ae399e01f38bfe1a3584acfc57b1d3dd3fd01a40793f67263ea516a24e755d70c408b448cac7072abde4d
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,13 @@ | |
| 1 1 | 
             
            ## [Unreleased]
         | 
| 2 2 |  | 
| 3 | 
            +
            ## [0.13.3]
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            - Support for namespace-level `erb_vars` that are passed to all jobs within that namespace
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            ## [0.13.2]
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            - Add missing start job task
         | 
| 10 | 
            +
             | 
| 3 11 | 
             
            ## [0.13.1]
         | 
| 4 12 |  | 
| 5 13 | 
             
            - Support for starting jobs (e.g. `cap production nomad:app:start`)
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -112,7 +112,7 @@ nomad_job :"traefik-secondary", template: :admin, | |
| 112 112 | 
             
              erb_vars: { role: :secondary },
         | 
| 113 113 | 
             
              tags: [:traefik]
         | 
| 114 114 |  | 
| 115 | 
            -
            nomad_namespace :analytics, tags: [:admin] do
         | 
| 115 | 
            +
            nomad_namespace :analytics, tags: [:admin], erb_vars: { role: :default } do
         | 
| 116 116 | 
             
              nomad_job :grafana
         | 
| 117 117 | 
             
            end
         | 
| 118 118 |  | 
    
        data/capistrano-nomad.gemspec
    CHANGED
    
    
| @@ -43,9 +43,15 @@ def nomad_job(name, attributes = {}) | |
| 43 43 |  | 
| 44 44 | 
             
              attributes[:tags] ||= []
         | 
| 45 45 |  | 
| 46 | 
            -
              # Tags added to namespace should be added to all jobs within
         | 
| 47 46 | 
             
              if (nomad_namespace_options = capistrano_nomad_fetch_namespace_options(namespace: @nomad_namespace))
         | 
| 47 | 
            +
                # Tags added to namespace should be added to all jobs within
         | 
| 48 48 | 
             
                attributes[:tags] += nomad_namespace_options[:tags] || []
         | 
| 49 | 
            +
             | 
| 50 | 
            +
                # ERB vars added to namespace should be added to all jobs within
         | 
| 51 | 
            +
                if (namespace_erb_vars = nomad_namespace_options[:erb_vars])
         | 
| 52 | 
            +
                  attributes[:erb_vars] ||= {}
         | 
| 53 | 
            +
                  attributes[:erb_vars].reverse_merge!(namespace_erb_vars)
         | 
| 54 | 
            +
                end
         | 
| 49 55 | 
             
              end
         | 
| 50 56 |  | 
| 51 57 | 
             
              nomad_jobs = fetch(:nomad_jobs) || Hash.new { |h, n| h[n] = {} }
         | 
| @@ -110,6 +116,11 @@ def nomad_job(name, attributes = {}) | |
| 110 116 | 
             
                    capistrano_nomad_deploy_jobs([name], namespace: namespace, is_detached: false)
         | 
| 111 117 | 
             
                  end
         | 
| 112 118 |  | 
| 119 | 
            +
                  desc("Start #{description_name} job")
         | 
| 120 | 
            +
                  task(:start) do
         | 
| 121 | 
            +
                    capistrano_nomad_start_jobs([name], namespace: namespace)
         | 
| 122 | 
            +
                  end
         | 
| 123 | 
            +
             | 
| 113 124 | 
             
                  desc("Stop #{description_name} job")
         | 
| 114 125 | 
             
                  task(:stop) do
         | 
| 115 126 | 
             
                    capistrano_nomad_stop_jobs([name], namespace: namespace)
         | 
    
        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.13. | 
| 4 | 
            +
              version: 0.13.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-10- | 
| 11 | 
            +
            date: 2025-10-06 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: activesupport
         |