fog-core 1.27.4 → 1.28.0

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: e822a212a0601171bf7a7d5f61f5bc46211c66b7
4
- data.tar.gz: 6abeed4e74994de0b27874fa1beefe93ff8c8fa3
3
+ metadata.gz: c3adfecc06e8a5e94b89b4734caca15a4b650984
4
+ data.tar.gz: 18cad321f56ecf4f8031d220dc8c1bf292b7479a
5
5
  SHA512:
6
- metadata.gz: c475dd52859470ac196901f374efab07bc3f7171b43fdc326ca0f637915c3e689dc7f85bf0720c6c6728d00dbcf76e88780494e70f5ca780c8963cb7ff37c85e
7
- data.tar.gz: 47e064f9eabc07c9d8f8ef459456f4116745bba31dface8629b18ae64ff34618a96c911b798361904ecbbfaf5dd36b6dfc10e6e9153b45eb5e25dd7a4ffe6247
6
+ metadata.gz: 5f06f19bda33e2a1ec1316f6fcb50e2bbbc940217d9a9f8e6c97304b088a4ae02fcfd81ef8dbb3356b40f2f04f510f44052f99db9918f98388c08c186e679f3b
7
+ data.tar.gz: 92c242001650b228e5ae34426836f014235d128263c66f96a1d3970135985e7e5f4cf38448e50f53866fc1dbc4e0ba205600f6bf99eae2b40f3c96c4284616c6
data/changelog.md CHANGED
@@ -1,10 +1,15 @@
1
- 1.27.4 01/26/2012
1
+ 1.28.0 01/30/2015
2
+ ==========================================================
3
+
4
+ add Fog::Baremetal
5
+
6
+ 1.27.4 01/26/2015
2
7
  ==========================================================
3
8
 
4
9
  model fix for new formatador usage
5
10
  fixes around formatador delegation
6
11
 
7
- 1.27.3 12/01/2012
12
+ 1.27.3 12/01/2014
8
13
  ==========================================================
9
14
 
10
15
  rubocop fixes for fog collection
@@ -0,0 +1,23 @@
1
+ module Fog
2
+ module Baremetal
3
+ def self.[](provider)
4
+ new(:provider => provider)
5
+ end
6
+
7
+ def self.new(attributes)
8
+ attributes = attributes.dup # Prevent delete from having side effects
9
+ provider = attributes.delete(:provider).to_s.downcase.to_sym
10
+
11
+ if providers.include?(provider)
12
+ require "fog/#{provider}/baremetal"
13
+ return Fog::Baremetal.const_get(Fog.providers[provider]).new(attributes)
14
+ end
15
+
16
+ raise ArgumentError, "#{provider} has no baremetal service"
17
+ end
18
+
19
+ def self.providers
20
+ Fog.services[:baremetal]
21
+ end
22
+ end
23
+ end
data/lib/fog/core.rb CHANGED
@@ -52,6 +52,7 @@ require "fog/core/whitelist_keys"
52
52
 
53
53
  # service wrappers
54
54
  require "fog/account"
55
+ require "fog/baremetal"
55
56
  require "fog/billing"
56
57
  require "fog/cdn"
57
58
  require "fog/compute"
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Core
3
- VERSION = "1.27.4"
3
+ VERSION = "1.28.0"
4
4
  end
5
5
  end
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.4
4
+ version: 1.28.0
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: 2015-01-26 00:00:00.000000000 Z
12
+ date: 2015-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -228,6 +228,7 @@ files:
228
228
  - changelog.md
229
229
  - fog-core.gemspec
230
230
  - lib/fog/account.rb
231
+ - lib/fog/baremetal.rb
231
232
  - lib/fog/billing.rb
232
233
  - lib/fog/cdn.rb
233
234
  - lib/fog/compute.rb