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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1569c42b24164df9330240dc63a0b1c98fb2dd30
4
- data.tar.gz: 04d60a5ee5f0b3f1acfe26edab13f50fa118a6ae
3
+ metadata.gz: 91a444b61f67185b3a81f955f9a958f3bee039b9
4
+ data.tar.gz: 16092e8e59509562558551ce7c62d8d2c6467e09
5
5
  SHA512:
6
- metadata.gz: 8313393e93c1e0590d9c0dbbdc2f3d97f512a6387c2c90ad9a717102a3fc46513ee46548f8a37bd6d919a921e0e185e6f3a0a9192178b5f7ff3a52f292ba51b1
7
- data.tar.gz: 56b1528d7267d5dc2c9eeb7549d64a1f57f2a94fdb810814f1305e5f1ae7c7baea08fd92e877bad5943e0d5efc4870d4e4d3e5e7dd2fb10e91dbd8869297e16a
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
@@ -1,2 +1,11 @@
1
- require 'fog/powerdns'
2
- require 'fog/powerdns/dns'
1
+ require 'fog/powerdns/version'
2
+ require 'fog/core'
3
+ require 'fog/xml'
4
+
5
+ module Fog
6
+ module PowerDNS
7
+ extend Fog::Provider
8
+
9
+ service(:dns, 'DNS')
10
+ end
11
+ end
@@ -1,4 +1,4 @@
1
- require 'fog/powerdns/core'
1
+ require 'fog/powerdns'
2
2
 
3
3
  module Fog
4
4
  module DNS
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module PowerDNS
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
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.0
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-13 00:00:00.000000000 Z
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.6
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:
@@ -1,11 +0,0 @@
1
- require 'fog/core'
2
- require 'fog/json'
3
- require 'fog/xml'
4
-
5
- module Fog
6
- module PowerDNS
7
- extend Fog::Provider
8
-
9
- service(:dns, 'DNS')
10
- end
11
- end