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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6cce60eb5ac84071ad2ad5764bc0ee528b9ded8
4
- data.tar.gz: 6e90dedb8e5a609e8f180d9b6f59fc30c234f285
3
+ metadata.gz: a9fa2487b74cb0376bffd685084ba6a2f81b7f27
4
+ data.tar.gz: 062731af2976fffd05159bee307449af36515f34
5
5
  SHA512:
6
- metadata.gz: 1dbffd955de33d3e5a8fa097fa4a5cd63cdbdfec824e9ad595bf3a4f6249b66734666749e226035cb693348ee241be96d26e5c172aeb1444a6a53091951d8832
7
- data.tar.gz: 202a91636bd1c6e5f60ad5b36b06e75adfbde4be38b0864231aa5a60443de526b61446fe3f97983cc1a5cc5dfc74e291e3961afc8b520330da79e6c3bd916776
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
@@ -1 +1,33 @@
1
- require 'fog/dynect/dns'
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
@@ -1,5 +1,3 @@
1
- require 'fog/dynect/core'
2
-
3
1
  module Fog
4
2
  module DNS
5
3
  class Dynect < Fog::Service
@@ -1,5 +1,3 @@
1
- require 'fog/core/model'
2
-
3
1
  module Fog
4
2
  module DNS
5
3
  class Dynect
@@ -1,4 +1,3 @@
1
- require 'fog/core/collection'
2
1
  require 'fog/dynect/models/dns/record'
3
2
 
4
3
  module Fog
@@ -1,4 +1,3 @@
1
- require 'fog/core/model'
2
1
  require 'fog/dynect/models/dns/records'
3
2
 
4
3
  module Fog
@@ -1,4 +1,3 @@
1
- require 'fog/core/collection'
2
1
  require 'fog/dynect/models/dns/zone'
3
2
 
4
3
  module Fog
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Dynect
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
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.1
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-05 00:00:00.000000000 Z
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
@@ -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