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 +4 -4
- data/capistrano3-consul.gemspec +1 -1
- data/lib/capistrano/consul/version.rb +1 -1
- data/lib/capistrano/consul.rb +7 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5509c46cd5fc618f268bce16d3b58bada6ee6cb3
|
4
|
+
data.tar.gz: 9bcbd772ddb34997510609573e764d037977e821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a4c775a52557f9bdef2183787ddc48f752b8b34785d1f4709f49cdd961f0dabbb47298ab4c3612ec980ee01c92f51cf2fbe4479ec99e4542dbb95dfb5cb131b
|
7
|
+
data.tar.gz: a676d04ee6bdb93840761a484e573f09a5ac5597e3bc7b07c02f6ce9f995786e89a2d8cd033f072a04c38273075673789fb8bf8615ce04f5f45c686f127dac98
|
data/capistrano3-consul.gemspec
CHANGED
@@ -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 = '
|
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
|
|
data/lib/capistrano/consul.rb
CHANGED
@@ -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.
|
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-
|
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:
|
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.
|
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.
|