fog-dynect 0.0.1 → 0.0.2
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/dynect.rb +28 -0
- data/lib/fog/dynect.rb +33 -1
- data/lib/fog/dynect/dns.rb +0 -2
- data/lib/fog/dynect/models/dns/record.rb +0 -2
- data/lib/fog/dynect/models/dns/records.rb +0 -1
- data/lib/fog/dynect/models/dns/zone.rb +0 -1
- data/lib/fog/dynect/models/dns/zones.rb +0 -1
- data/lib/fog/dynect/version.rb +1 -1
- metadata +3 -3
- data/lib/fog/dynect/core.rb +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9fa2487b74cb0376bffd685084ba6a2f81b7f27
|
4
|
+
data.tar.gz: 062731af2976fffd05159bee307449af36515f34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 577fc2deb7721bc47da1f022762cdb0ca058a2e55f189916dec21ef9ef16ed970be4605d4f2dba0fdb4602d6c0382a7613c02f85a110960bcb201d69c2ef4837
|
7
|
+
data.tar.gz: abdf2c0de8a42c62903414bcae7f01b8e0b95679f019afa98b4c89017b777c25ccac6279a08a9e20e78360ed324274f79c187369ffbca5ff59f556912b90f2ce
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class Dynect < Fog::Bin
|
2
|
+
class << self
|
3
|
+
def class_for(key)
|
4
|
+
case key
|
5
|
+
when :dns
|
6
|
+
Fog::DNS::Dynect
|
7
|
+
else
|
8
|
+
raise ArgumentError, "Unrecognized service: #{key}"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def [](service)
|
13
|
+
@@connections ||= Hash.new do |hash, key|
|
14
|
+
hash[key] = case key
|
15
|
+
when :dns
|
16
|
+
Fog::DNS.new(:provider => 'Dynect')
|
17
|
+
else
|
18
|
+
raise ArgumentError, "Unrecognized service: #{service}"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
@@connections[service]
|
22
|
+
end
|
23
|
+
|
24
|
+
def services
|
25
|
+
[:dns]
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/fog/dynect.rb
CHANGED
@@ -1 +1,33 @@
|
|
1
|
-
require '
|
1
|
+
require 'nokogiri'
|
2
|
+
|
3
|
+
require 'fog/core'
|
4
|
+
require 'fog/json'
|
5
|
+
require 'fog/xml'
|
6
|
+
|
7
|
+
module Fog
|
8
|
+
module DNS
|
9
|
+
autoload :Dynect, File.expand_path('../dynect/dns', __FILE__)
|
10
|
+
end
|
11
|
+
|
12
|
+
module Dynect
|
13
|
+
extend Fog::Provider
|
14
|
+
|
15
|
+
autoload :VERSION, File.expand_path('../dynect/version', __FILE__)
|
16
|
+
|
17
|
+
service(:dns, 'DNS')
|
18
|
+
|
19
|
+
class Mock
|
20
|
+
def self.job_id
|
21
|
+
Fog::Mock.random_numbers(8).to_i
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.token
|
25
|
+
Fog::Mock.random_hex(48)
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.version
|
29
|
+
[Fog::Mock.random_numbers(1), Fog::Mock.random_numbers(1), Fog::Mock.random_numbers(1)].join('.')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/lib/fog/dynect/dns.rb
CHANGED
data/lib/fog/dynect/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-dynect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wesley Beary
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-08-
|
12
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -115,8 +115,8 @@ files:
|
|
115
115
|
- Rakefile
|
116
116
|
- fog-dynect.gemspec
|
117
117
|
- gemfiles/Gemfile-1.8.7
|
118
|
+
- lib/fog/bin/dynect.rb
|
118
119
|
- lib/fog/dynect.rb
|
119
|
-
- lib/fog/dynect/core.rb
|
120
120
|
- lib/fog/dynect/dns.rb
|
121
121
|
- lib/fog/dynect/models/dns/record.rb
|
122
122
|
- lib/fog/dynect/models/dns/records.rb
|
data/lib/fog/dynect/core.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
require 'nokogiri'
|
2
|
-
|
3
|
-
require 'fog/core'
|
4
|
-
require 'fog/json'
|
5
|
-
require 'fog/xml'
|
6
|
-
|
7
|
-
module Fog
|
8
|
-
module Dynect
|
9
|
-
extend Fog::Provider
|
10
|
-
|
11
|
-
service(:dns, 'DNS')
|
12
|
-
|
13
|
-
class Mock
|
14
|
-
def self.job_id
|
15
|
-
Fog::Mock.random_numbers(8).to_i
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.token
|
19
|
-
Fog::Mock.random_hex(48)
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.version
|
23
|
-
[Fog::Mock.random_numbers(1), Fog::Mock.random_numbers(1), Fog::Mock.random_numbers(1)].join('.')
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|