fog-powerdns 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fog/bin/powerdns.rb +28 -0
- data/lib/fog/powerdns.rb +11 -2
- data/lib/fog/powerdns/dns.rb +1 -1
- data/lib/fog/powerdns/version.rb +1 -1
- metadata +5 -4
- data/lib/fog/powerdns/core.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91a444b61f67185b3a81f955f9a958f3bee039b9
|
4
|
+
data.tar.gz: 16092e8e59509562558551ce7c62d8d2c6467e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8c6e2f0aa47fed1d244ba1384866666d8f21263bff187e517fe837172d1297ec2ce1768317ce232fa5ad13255f8c6308789fb51f1d4f40d7147cc66c4c64669
|
7
|
+
data.tar.gz: e2c7deb6a38eb04760b9a66fbe4ea513bb4cb2ed8135ac9ed46f36e211540ee9bc2f6984ac5296f40f89d4b0642756166343e2450f4ad6014e93a53cbb9c6a28
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class PowerDNS < Fog::Bin
|
2
|
+
class << self
|
3
|
+
def class_for(key)
|
4
|
+
case key
|
5
|
+
|
6
|
+
when :dns
|
7
|
+
Fog::DNS::PowerDNS
|
8
|
+
else
|
9
|
+
raise ArgumentError, "Unsupported #{self} service: #{key}"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
def [](service)
|
13
|
+
@@connections ||= Hash.new do |hash, key|
|
14
|
+
hash[key] = case key
|
15
|
+
when :dns
|
16
|
+
Fog::Logger.warning("PowerDNS[:dns] is not recommended, use DNS[:powerdns] for portability")
|
17
|
+
Fog::DNS.new(:provider => :powerdns)
|
18
|
+
else
|
19
|
+
raise ArgumentError, "Unrecognized service: #{key.inspect}"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
@@connections[service]
|
23
|
+
end
|
24
|
+
def services
|
25
|
+
Fog::PowerDNS.services
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/fog/powerdns.rb
CHANGED
data/lib/fog/powerdns/dns.rb
CHANGED
data/lib/fog/powerdns/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-powerdns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Luo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -97,8 +97,8 @@ files:
|
|
97
97
|
- bin/console
|
98
98
|
- bin/setup
|
99
99
|
- fog-powerdns.gemspec
|
100
|
+
- lib/fog/bin/powerdns.rb
|
100
101
|
- lib/fog/powerdns.rb
|
101
|
-
- lib/fog/powerdns/core.rb
|
102
102
|
- lib/fog/powerdns/dns.rb
|
103
103
|
- lib/fog/powerdns/models/dns/record.rb
|
104
104
|
- lib/fog/powerdns/models/dns/records.rb
|
@@ -142,8 +142,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.4.
|
145
|
+
rubygems_version: 2.4.5
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Module for the 'fog' gem to support PowerDNS DNS services.
|
149
149
|
test_files: []
|
150
|
+
has_rdoc:
|