fog-softlayer 0.0.3 → 0.0.4

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
- SHA512:
3
- data.tar.gz: ce77cb11421280fddba5c1b5eb5b6f1ee5e758db4ecb996d07705e3094cf8b30203792e3238e9f061f97f30a9de7e2068993dfd24d5597e3d819a8286e1dc215
4
- metadata.gz: 05f842025b5ada86054bc9a9bae1f9018eab6840f17fbf914019cc49f9fff796e3bdc4a81e1c7e22b1f543f00846339b1fac3e0bc794a62db9240e553d1e3bb6
5
2
  SHA1:
6
- data.tar.gz: 0679efb2653ce4f5598f963e2befa614b471973c
7
- metadata.gz: f75143038ed0f4d1daa5439d0783d0b167168d03
3
+ data.tar.gz: 603a92b8df5d52e401e355800b18e9bd8212a1ad
4
+ metadata.gz: c04b468d48832beb929584ebffaf958c2e4511d3
5
+ SHA512:
6
+ data.tar.gz: 1482ca7a4cbfb56189127d900541218c343b3eb0f93063e72f52fa9b526bbe0d66f78e8ca033ecc8b59d41d2d78bb2c796f928e5beb0692d0513cbd7f59a76b8
7
+ metadata.gz: 06f30a5d29b281c089729822bcaf6cc734bdc37012349e47507863920ebb7a6c98da013c33b7fd1b28f24fdf53bdfc2bda5ad15a24f69536aeb4e2bd2666b45e
@@ -21,24 +21,39 @@ module Fog
21
21
  recognizes :softlayer_default_domain
22
22
 
23
23
 
24
- service = File.basename(__FILE__, '.rb')
24
+ #service = File.basename(__FILE__, '.rb')
25
25
 
26
26
  model_path 'fog/softlayer/models/compute'
27
- Fog::Softlayer.loader("models/#{service}") do |basename|
28
- if basename =~ /s$/
29
- collection basename
30
- else
31
- model basename
32
- end
33
-
34
- end
35
-
36
- request_path "fog/softlayer/requests/#{service}"
37
- Fog::Softlayer.loader("requests/#{service}") do |basename|
38
- request basename
39
- end
40
-
41
-
27
+ collection :flavors
28
+ model :flavor
29
+ collection :images
30
+ model :image
31
+ collection :servers
32
+ model :server
33
+
34
+ #Fog::Softlayer.loader("models/#{service}") do |basename|
35
+ # if basename =~ /s$/
36
+ # collection basename
37
+ # else
38
+ # model basename
39
+ # end
40
+ #
41
+ #end
42
+
43
+ request_path 'fog/softlayer/requests/compute'
44
+ request :create_bare_metal_server
45
+ request :create_vm
46
+ request :create_vms
47
+ request :delete_bare_metal_server
48
+ request :delete_vm
49
+ request :get_bare_metal_server
50
+ request :get_bare_metal_servers
51
+ request :get_vm
52
+ request :get_vms
53
+
54
+ #Fog::Softlayer.loader("requests/#{service}") do |basename|
55
+ # request basename
56
+ #end
42
57
 
43
58
  # The Mock Service allows you to run a fake instance of the Service
44
59
  # which makes no real connections.
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Softlayer
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-softlayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Eldridge