fog-softlayer 0.3.25 → 0.3.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6bdcbe975bf34108b4f2939a580a838577cd6411
4
- data.tar.gz: 72ecf786bbb3281b118d7eb2414d3f66e8f1827c
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MjcxZjFjMjViMTg3ODUwYjNiYTkwZTdlZmNhNWY2MTFiZTNjZWM0ZA==
5
+ data.tar.gz: !binary |-
6
+ YmJjYjQ4OTdlYmExMTI4NmE0ODcyZTcwMjE3ZDI4MzBlNjJiNTM5NA==
5
7
  SHA512:
6
- metadata.gz: e6de76f98f4ede5285e4746d73782417bd7cbcdd4cf577ecd71d4b8b10bc41b35f73e45e6e27c9f765d503b1769a0f0351b1d5ab4a3fff8ba3f3e909d103828e
7
- data.tar.gz: e9c4fdf1d58556e939ac8add2de0f45fb07728d673b4f345984dec3c85f76e8ce36c90a8469c4f73b67332356223d285713f10b31fa8b8bb9d7e0a0c4942c305
8
+ metadata.gz: !binary |-
9
+ NTE5MDZmOWY2NDRiYWQ3OWNmOGQzZGIwZmI3ZjFmNWY3YzE4OTk1MDdiNzMw
10
+ Y2NlMmQ0MWJiODM0ZWM5NzA1ODUzMjExZTc0YzM3YzQzZmZkNzZmYzAyOWEz
11
+ YmI2ZGFiYWNhYWRkMTAxMWJlOTQxZTI1Yzk1MzljMzY4MDQwZWY=
12
+ data.tar.gz: !binary |-
13
+ NDNhZTU0ZGNjYzc0NTAwYjY5NWFhMjgwYTdlNjkzMDgxZDY2NzNkYTZlYjc4
14
+ NjNhOTEwYjVmNmQxMjBkMjFmMTYxMzcyY2UwZDUwODRmOTIxZTU4ZGE2Yjg0
15
+ NmIyYWUwNDdiNzM1MWYxMWNjZmM1ZGZkZGU1OGVlOWIwYjU3MjQ=
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Fog::Softlayer::VERSION
9
9
  spec.authors = ["Matt Eldridge"]
10
10
  spec.email = ["matt.eldridge@us.ibm.com"]
11
- spec.date = '2014-07-16'
11
+ spec.date = Date.today.to_s
12
12
  spec.description = %q{Module for the 'fog' gem to support SoftLayer Cloud}
13
13
  spec.summary = %q{This library can be used as a module for `fog` or as standalone provider
14
14
  to use the SoftLayer Cloud in applications}
@@ -166,6 +166,17 @@ module Fog
166
166
  attributes[:private_vlan] = value
167
167
  end
168
168
 
169
+ # reload the OS on a server (method name reload was already taken)
170
+ def relaunch!
171
+ requires :id
172
+ body = [ "FORCE", {}]
173
+ body[1][:sshKeyIds] = key_pairs.map {|kp| kp.id} unless key_pairs.empty?
174
+ type = bare_metal? ? :hardware_server : :virtual_guest
175
+ status = service.request(type, "#{id}/reloadOperatingSystem", :body => body, :http_method => :post).status
176
+ wait_for { not ready? } # block until the relaunch has begun
177
+ [200, 201].include?(status)
178
+ end
179
+
169
180
  def key_pairs
170
181
  attributes[:key_pairs]
171
182
  end
@@ -236,10 +247,14 @@ module Fog
236
247
  end
237
248
 
238
249
  def ready?
239
- if bare_metal?
240
- state == "on"
241
- else
242
- state == "Running"
250
+ begin
251
+ if bare_metal?
252
+ state == "on"
253
+ else
254
+ state == "Running"
255
+ end
256
+ rescue Excon::Errors::InternalServerError => e
257
+ false
243
258
  end
244
259
  end
245
260
 
@@ -7,6 +7,6 @@
7
7
 
8
8
  module Fog
9
9
  module Softlayer
10
- VERSION = "0.3.25"
10
+ VERSION = "0.3.26"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-softlayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.25
4
+ version: 0.3.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Eldridge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-16 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fog-json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rbvmomi
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: yard
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: thor
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
@@ -126,56 +126,56 @@ dependencies:
126
126
  name: shindo
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
131
  version: 0.3.4
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ~>
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.3.4
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: fission
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ">="
143
+ - - ! '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ">="
150
+ - - ! '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: pry
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
157
+ - - ! '>='
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ">="
164
+ - - ! '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: osrcry
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ">="
171
+ - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ">="
178
+ - - ! '>='
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  description: Module for the 'fog' gem to support SoftLayer Cloud
@@ -185,8 +185,8 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
- - ".gitignore"
189
- - ".travis.yml"
188
+ - .gitignore
189
+ - .travis.yml
190
190
  - CHANGELOG.md
191
191
  - CONTRIBUTING.md
192
192
  - CONTRIBUTORS.md
@@ -373,12 +373,12 @@ require_paths:
373
373
  - lib
374
374
  required_ruby_version: !ruby/object:Gem::Requirement
375
375
  requirements:
376
- - - ">="
376
+ - - ! '>='
377
377
  - !ruby/object:Gem::Version
378
378
  version: '0'
379
379
  required_rubygems_version: !ruby/object:Gem::Requirement
380
380
  requirements:
381
- - - ">="
381
+ - - ! '>='
382
382
  - !ruby/object:Gem::Version
383
383
  version: '0'
384
384
  requirements: []
@@ -390,3 +390,4 @@ summary: This library can be used as a module for `fog` or as standalone provide
390
390
  to use the SoftLayer Cloud in applications
391
391
  test_files:
392
392
  - spec/fog/compute/softlayer_spec.rb
393
+ has_rdoc: