alpha_omega 0.0.80 → 0.0.81
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.
- data/lib/alpha_omega/utils.rb +5 -5
- data/lib/alpha_omega/version.rb +1 -1
- metadata +14 -14
    
        data/lib/alpha_omega/utils.rb
    CHANGED
    
    | @@ -63,7 +63,7 @@ module AlphaOmega | |
| 63 63 | 
             
              end
         | 
| 64 64 |  | 
| 65 65 | 
             
              def self.default_pods_tasks
         | 
| 66 | 
            -
                Proc.new do |config, pod_name, pod, mix_pods, pods_config, opsdb, this_pod, &node_filter|
         | 
| 66 | 
            +
                Proc.new do |config, pod_name, pod, mix_pods, pods_config, opsdb, this_pod, this_node, &node_filter|
         | 
| 67 67 | 
             
                  [ "", ".echo", ".yaml" ].each do |tsuffix|
         | 
| 68 68 | 
             
                     # world task accumulates all.* after tasks
         | 
| 69 69 | 
             
                    config.task "world#{tsuffix}" do
         | 
| @@ -79,7 +79,7 @@ module AlphaOmega | |
| 79 79 | 
             
                    AlphaOmega.what_hosts pod do |task_name, remote_name, node|
         | 
| 80 80 | 
             
                      n = AlphaOmega.node_defaults(node, pods_config, opsdb, pod_name, this_pod, remote_name)
         | 
| 81 81 |  | 
| 82 | 
            -
                      if node_filter.nil? || node_filter.call(n)
         | 
| 82 | 
            +
                      if node_filter.nil? || node_filter.call(this_node, n)
         | 
| 83 83 | 
             
                        config.task "#{task_name}.#{pod_name}" do
         | 
| 84 84 | 
             
                          role :app, remote_name
         | 
| 85 85 | 
             
                        end
         | 
| @@ -167,8 +167,8 @@ module AlphaOmega | |
| 167 167 | 
             
              end
         | 
| 168 168 |  | 
| 169 169 | 
             
              def self.setup_pods (config, node_home, mix_pods = true, &node_filter)
         | 
| 170 | 
            -
                self.what_pods(config, node_home) do |config, pod_name, pod, pods_config, opsdb, this_pod| 
         | 
| 171 | 
            -
                  self.default_pods_tasks.call(config, pod_name, pod, mix_pods, pods_config, opsdb, this_pod, &node_filter) 
         | 
| 170 | 
            +
                self.what_pods(config, node_home) do |config, pod_name, pod, pods_config, opsdb, this_pod, this_node| 
         | 
| 171 | 
            +
                  self.default_pods_tasks.call(config, pod_name, pod, mix_pods, pods_config, opsdb, this_pod, this_node, &node_filter) 
         | 
| 172 172 | 
             
                end
         | 
| 173 173 | 
             
              end
         | 
| 174 174 |  | 
| @@ -226,7 +226,7 @@ module AlphaOmega | |
| 226 226 | 
             
                    "nodes_specs" => [ "#{node_home}/pods/#{pod_name}/*.yaml", "#{node_home}/pods/#{pod_name}/*.json" ],
         | 
| 227 227 | 
             
                    "node_suffix" => ".#{pod_name}"
         | 
| 228 228 | 
             
                  }
         | 
| 229 | 
            -
                  yield config, pod_name, pods[pod_name], pods_config, opsdb, this_pod
         | 
| 229 | 
            +
                  yield config, pod_name, pods[pod_name], pods_config, opsdb, this_pod, this_node
         | 
| 230 230 | 
             
                end
         | 
| 231 231 |  | 
| 232 232 | 
             
                pods
         | 
    
        data/lib/alpha_omega/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: alpha_omega
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash:  | 
| 4 | 
            +
              hash: 189
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 0
         | 
| 8 8 | 
             
              - 0
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
              version: 0.0. | 
| 9 | 
            +
              - 81
         | 
| 10 | 
            +
              version: 0.0.81
         | 
| 11 11 | 
             
            platform: ruby
         | 
| 12 12 | 
             
            authors: 
         | 
| 13 13 | 
             
            - David Nghiem
         | 
| @@ -118,29 +118,29 @@ files: | |
| 118 118 | 
             
            - LICENSE
         | 
| 119 119 | 
             
            - README.mkd
         | 
| 120 120 | 
             
            - Procfile.rb
         | 
| 121 | 
            -
            - libexec/check
         | 
| 122 | 
            -
            - libexec/compare
         | 
| 123 | 
            -
            - libexec/deploy
         | 
| 124 121 | 
             
            - libexec/dna
         | 
| 125 122 | 
             
            - libexec/hosts
         | 
| 126 | 
            -
            - libexec/patch
         | 
| 127 123 | 
             
            - libexec/rollback
         | 
| 128 124 | 
             
            - libexec/shell
         | 
| 125 | 
            +
            - libexec/check
         | 
| 126 | 
            +
            - libexec/compare
         | 
| 127 | 
            +
            - libexec/deploy
         | 
| 129 128 | 
             
            - libexec/stage
         | 
| 130 | 
            -
            -  | 
| 131 | 
            -
            - lib/alpha_omega/ | 
| 129 | 
            +
            - libexec/patch
         | 
| 130 | 
            +
            - lib/alpha_omega/version.rb
         | 
| 131 | 
            +
            - lib/alpha_omega/deploy/strategy.rb
         | 
| 132 132 | 
             
            - lib/alpha_omega/deploy/remote_dependency.rb
         | 
| 133 | 
            -
            - lib/alpha_omega/deploy/scm/base.rb
         | 
| 134 | 
            -
            - lib/alpha_omega/deploy/scm/git.rb
         | 
| 135 133 | 
             
            - lib/alpha_omega/deploy/scm.rb
         | 
| 134 | 
            +
            - lib/alpha_omega/deploy/dependencies.rb
         | 
| 136 135 | 
             
            - lib/alpha_omega/deploy/strategy/base.rb
         | 
| 137 | 
            -
            - lib/alpha_omega/deploy/strategy/checkout.rb
         | 
| 138 136 | 
             
            - lib/alpha_omega/deploy/strategy/remote.rb
         | 
| 139 | 
            -
            - lib/alpha_omega/deploy/strategy.rb
         | 
| 137 | 
            +
            - lib/alpha_omega/deploy/strategy/checkout.rb
         | 
| 138 | 
            +
            - lib/alpha_omega/deploy/local_dependency.rb
         | 
| 140 139 | 
             
            - lib/alpha_omega/deploy/templates/maintenance.rhtml
         | 
| 140 | 
            +
            - lib/alpha_omega/deploy/scm/git.rb
         | 
| 141 | 
            +
            - lib/alpha_omega/deploy/scm/base.rb
         | 
| 141 142 | 
             
            - lib/alpha_omega/deploy.rb
         | 
| 142 143 | 
             
            - lib/alpha_omega/utils.rb
         | 
| 143 | 
            -
            - lib/alpha_omega/version.rb
         | 
| 144 144 | 
             
            - bin/alpha_omega
         | 
| 145 145 | 
             
            homepage: https://github.com/HeSYINUvSBZfxqA/alpha_omega
         | 
| 146 146 | 
             
            licenses: []
         |