fog-core 1.27.1 → 1.27.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: 1dc951352a5dc9909d42e4786a1c9bc261cc42ce
4
- data.tar.gz: 374a09fae5eae27aebfda7e2b3531d79386a9559
3
+ metadata.gz: cb0c85564583ea60af61b0763f78fee6089c8230
4
+ data.tar.gz: 8f4cf853cd883f2906163109271902bf9f658544
5
5
  SHA512:
6
- metadata.gz: 3163c4fd1d61ec875bcb5141f4d84655fe400c31c1790bcada2356c7235f8add1f29b59317a3541de53b2e57bbe40f0df8b3411161bbef572a390103c9381a6f
7
- data.tar.gz: 26e293890e46ba611f83b863f1f99f0606a521bfff9111acf8c3d1661bc988b892b76035c0487db7aa4dd46ebc9a7a6cbc6d9b5de90fb101a35b6d87385e036d
6
+ metadata.gz: 4517193ec6b81e6962b98f1c1c0f5882f4f7611ebf131941c6efbe3f6792bb69cd69d4595bfcf26765d9b67360d3efc59063bc3b8e6a7f0c695e13028dbc89d0
7
+ data.tar.gz: c13706aa2a55be66ded1df68e013621757a06d02ef0cb9ee0b11100478274c266a7e376b55c2f1b8066cf319dbd7a7857f09ef917dd2e409f4214b0cfe98ea31
@@ -1,3 +1,8 @@
1
+ 1.27.2 18/12/2014
2
+ ==========================================================
3
+
4
+ fix several requires in service abstraction code
5
+
1
6
  1.27.1 12/12/2014
2
7
  ==========================================================
3
8
 
@@ -9,7 +9,7 @@ module Fog
9
9
  provider = attributes.delete(:provider).to_s.downcase.to_sym
10
10
 
11
11
  if provider == :stormondemand
12
- require "fog/storm_on_demand/account"
12
+ require "fog/account/storm_on_demand"
13
13
  Fog::Account::StormOnDemand.new(attributes)
14
14
  else
15
15
  raise ArgumentError, "#{provider} has no account service"
@@ -17,7 +17,7 @@ module Fog
17
17
  end
18
18
 
19
19
  def self.providers
20
- Fog.services[:account]
20
+ Fog.services[:account] || []
21
21
  end
22
22
  end
23
23
  end
@@ -8,7 +8,7 @@ module Fog
8
8
  attributes = attributes.dup
9
9
  provider = attributes.delete(:provider).to_s.downcase.to_sym
10
10
  if provider == :stormondemand
11
- require "fog/storm_on_demand/billing"
11
+ require "fog/billing/storm_on_demand"
12
12
  Fog::Billing::StormOnDemand.new(attributes)
13
13
  else
14
14
  raise ArgumentError, "#{provider} has no billing service"
@@ -42,7 +42,7 @@ module Fog
42
42
  Fog::Compute::RackspaceV2.new(attributes)
43
43
  end
44
44
  when :stormondemand
45
- require "fog/storm_on_demand/compute"
45
+ require "fog/compute/storm_on_demand"
46
46
  Fog::Compute::StormOnDemand.new(attributes)
47
47
  when :vcloud
48
48
  require "fog/vcloud/compute"
@@ -52,7 +52,11 @@ module Fog
52
52
  Fog::Compute::VcloudDirector.new(attributes)
53
53
  else
54
54
  if providers.include?(provider)
55
- require "fog/#{provider}/compute"
55
+ begin
56
+ require "fog/#{provider}/compute"
57
+ rescue LoadError
58
+ require "fog/compute/#{provider}"
59
+ end
56
60
  begin
57
61
  Fog::Compute.const_get(Fog.providers[provider])
58
62
  rescue
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Core
3
- VERSION = "1.27.1"
3
+ VERSION = "1.27.2"
4
4
  end
5
5
  end
@@ -8,7 +8,7 @@ module Fog
8
8
  attributes = attributes.dup # prevent delete from having side effects
9
9
  case provider = attributes.delete(:provider).to_s.downcase.to_sym
10
10
  when :stormondemand
11
- require "fog/storm_on_demand/dns"
11
+ require "fog/dns/storm_on_demand"
12
12
  Fog::DNS::StormOnDemand.new(attributes)
13
13
  else
14
14
  if providers.include?(provider)
@@ -8,7 +8,7 @@ module Fog
8
8
  attributes = attributes.dup
9
9
  provider = attributes.delete(:provider).to_s.downcase.to_sym
10
10
  if provider == :stormondemand
11
- require "fog/storm_on_demand/billing"
11
+ require "fog/monitoring/storm_on_demand"
12
12
  Fog::Monitoring::StormOnDemand.new(attributes)
13
13
  else
14
14
  raise ArgumentError, "#{provider} has no monitoring service"
@@ -9,7 +9,7 @@ module Fog
9
9
  provider = attributes.delete(:provider).to_s.downcase.to_sym
10
10
 
11
11
  if provider == :stormondemand
12
- require "fog/storm_on_demand/network"
12
+ require "fog/network/storm_on_demand"
13
13
  return Fog::Network::StormOnDemand.new(attributes)
14
14
  elsif providers.include?(provider)
15
15
  require "fog/#{provider}/network"
@@ -9,7 +9,7 @@ module Fog
9
9
  provider = attributes.delete(:provider).to_s.downcase.to_sym
10
10
 
11
11
  if providers.include?(provider)
12
- require "fog/#{provider}/network"
12
+ require "fog/#{provider}/orchestration"
13
13
  return Fog::Orchestration.const_get(Fog.providers[provider]).new(attributes)
14
14
  end
15
15
 
@@ -13,7 +13,7 @@ module Fog
13
13
  require "fog/internet_archive/storage"
14
14
  Fog::Storage::InternetArchive.new(attributes)
15
15
  when :stormondemand
16
- require "fog/storm_on_demand/storage"
16
+ require "fog/storage/storm_on_demand"
17
17
  Fog::Storage::StormOnDemand.new(attributes)
18
18
  else
19
19
  if providers.include?(provider)
@@ -9,7 +9,7 @@ module Fog
9
9
  provider = attributes.delete(:provider).to_s.downcase.to_sym
10
10
 
11
11
  if provider == :stormondemand
12
- require "fog/storm_on_demand/support"
12
+ require "fog/support/storm_on_demand"
13
13
  Fog::Support::StormOnDemand.new(attributes)
14
14
  else
15
15
  raise ArgumentError, "#{provider} has no support service"
@@ -9,7 +9,7 @@ module Fog
9
9
  provider = attributes.delete(:provider).to_s.downcase.to_sym
10
10
 
11
11
  if provider == :stormondemand
12
- require "fog/storm_on_demand/vpn"
12
+ require "fog/vpn/storm_on_demand"
13
13
  Fog::VPN::StormOnDemand.new(attributes)
14
14
  else
15
15
  raise ArgumentError, "#{provider} has no vpn service"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.1
4
+ version: 1.27.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Light
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-12 00:00:00.000000000 Z
12
+ date: 2014-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder