fog-azure-rm 0.4.1 → 0.4.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
  SHA256:
3
- metadata.gz: 24eab57de64a1baaffb81c7e1ab2d7b0f1bcc1856cdfe89a97f2472f9b796dd6
4
- data.tar.gz: c19bb3d44fa023fb03bb36ce8705d29d5ecf656eb8ad9cbc359dc8af721ddc80
3
+ metadata.gz: 524c1f0c1c6c31d7d7fd46537968247958d85a5c34bd8d9a32b9999a40406058
4
+ data.tar.gz: 876712ef9579847efccf838bd144680b196cc3d9fe526c7cd72b2ebb5e68ff5c
5
5
  SHA512:
6
- metadata.gz: 68d789b370e855b6c34174685b76d47595d0882cb855dce39859bc3d0561e23723a1262dfea73b41a225797d583b64b8b40099cc1c9e4929f36950fb541bf91e
7
- data.tar.gz: f1b2bac2be169c1e9753c07ded67cbb7d8e4aafc901bcb056a40408c021cd7bbc9dd704d52bd080371ed8042554e5b9ee7d8491d187df85ca5d3bf3b2d7a0482
6
+ metadata.gz: 9f32d3d8d593db5306da3458bbc348ccb5824b5ea2a34661b721755531f9d9c5b853fa365d6d71540b51160f80eb771a22fbe0a164aa59add05fc6d2d8ee1bc8
7
+ data.tar.gz: b4af7b5491fc177f1804a8a5078ffdd0ae93cfcc7bc3a4333eef1d179e74d22c64e87909901c96e081fdba9201c00bf36803e7896b55da6af82fde409822afeb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.4.2
2
+
3
+ **Fixed:**
4
+ - Fixed 'raise_azure_exception' method
5
+
1
6
  ## 0.4.1
2
7
 
3
8
  **Fixed:**
@@ -223,6 +223,31 @@ status = fog_compute_service
223
223
  puts status
224
224
  ```
225
225
 
226
+ ## Start a Server
227
+ ```ruby
228
+ server.start
229
+ ```
230
+
231
+ ## Power Off a Server
232
+ ```ruby
233
+ server.power_off
234
+ ```
235
+
236
+ ## Restart a Server
237
+ ```ruby
238
+ server.restart
239
+ ```
240
+
241
+ ## Deallocate a Server
242
+ ```ruby
243
+ server.deallocate
244
+ ```
245
+
246
+ ## Redeploy a Server
247
+ ```ruby
248
+ server.redeploy
249
+ ```
250
+
226
251
  ## Destroy a single Server
227
252
 
228
253
  Get a server object from the get method (described above) and then destroy that server.
@@ -47,16 +47,8 @@ def get_record_type(type)
47
47
  end
48
48
 
49
49
  def raise_azure_exception(exception, msg)
50
- if exception.respond_to? 'body'
51
- message = if exception.body['error'].nil?
52
- exception.body['message']
53
- else
54
- exception.body['error']['message']
55
- end
56
- exception_message = "Exception in #{msg} #{message} Type: #{exception.class}\n#{exception.backtrace.join("\n")}"
57
- else
58
- exception_message = "#{exception.inspect}\n#{exception.backtrace.join("\n")}"
59
- end
50
+ description = exception.is_a?(Azure::Core::Http::HTTPError) ? exception.description : exception.error_message
51
+ exception_message = "Exception in #{msg} #{description} Type: #{exception.class}\n#{exception.backtrace.join('\n')}"
60
52
 
61
53
  Fog::Logger.debug exception.backtrace
62
54
  raise exception_message
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module AzureRM
3
- VERSION = '0.4.1'.freeze
3
+ VERSION = '0.4.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-azure-rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaffan Chaudhry
@@ -18,7 +18,7 @@ authors:
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2017-12-19 00:00:00.000000000 Z
21
+ date: 2018-01-03 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: rake
@@ -1057,7 +1057,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1057
1057
  version: '0'
1058
1058
  requirements: []
1059
1059
  rubyforge_project:
1060
- rubygems_version: 2.7.3
1060
+ rubygems_version: 2.7.4
1061
1061
  signing_key:
1062
1062
  specification_version: 4
1063
1063
  summary: Module for the 'fog' gem to support Azure Resource Manager cloud services.