capistrano3-consul 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: 6c472f63edc62943bef9445d7abb194ccfc6e97a
4
- data.tar.gz: 20084f8d4280f7bca15b4c7a3b3ac7b301879877
3
+ metadata.gz: 5509c46cd5fc618f268bce16d3b58bada6ee6cb3
4
+ data.tar.gz: 9bcbd772ddb34997510609573e764d037977e821
5
5
  SHA512:
6
- metadata.gz: 0050b2ccaf7d2f4713e3bcc781827c0f5aec7f32de1af0bbf568d286ee509b0492ae5a06a3cc8b6bc70b5e08ee728fd3f29295aea1422131cf9344896faa99d3
7
- data.tar.gz: 538ab908bf5806edf1f412a40d8e393b630fea12f7895f977665b6fcfa65f12cc37332e67191a87e5e0d5f4d7156ace2e3d5731efa89e56d211ed92fab671911
6
+ metadata.gz: 3a4c775a52557f9bdef2183787ddc48f752b8b34785d1f4709f49cdd961f0dabbb47298ab4c3612ec980ee01c92f51cf2fbe4479ec99e4542dbb95dfb5cb131b
7
+ data.tar.gz: a676d04ee6bdb93840761a484e573f09a5ac5597e3bc7b07c02f6ce9f995786e89a2d8cd033f072a04c38273075673789fb8bf8615ce04f5f45c686f127dac98
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['joseferper@gmail.com']
11
11
 
12
12
  spec.summary = 'Plugin to use a consul server/cluster to define capistrano servers.'
13
- spec.description = 'This plugin allow using a consul server to automatically set up servers.'
13
+ spec.description = 'Use consul as a server inventory for capistrano.'
14
14
  spec.homepage = 'https://github.com/magec/capistrano3-consul'
15
15
  spec.license = 'MIT'
16
16
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Consul
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -15,6 +15,13 @@ module Capistrano
15
15
  end
16
16
 
17
17
  module DSL
18
+ def consul_all_nodes(properties = {})
19
+ Consul.setup
20
+ Diplomat::Node.get_all.each do |node|
21
+ server(node['Address'], properties)
22
+ end
23
+ end
24
+
18
25
  def consul_service(service_name, properties = {})
19
26
  Consul.setup
20
27
  Diplomat::Service.get(service_name, :all).each do |node|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano3-consul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jose Fernandez (magec)
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-29 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
- description: This plugin allow using a consul server to automatically set up servers.
83
+ description: Use consul as a server inventory for capistrano.
84
84
  email:
85
85
  - joseferper@gmail.com
86
86
  executables: []
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.2.2
122
+ rubygems_version: 2.4.5
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Plugin to use a consul server/cluster to define capistrano servers.