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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/fog/azurerm/docs/compute.md +25 -0
- data/lib/fog/azurerm/utilities/general.rb +2 -10
- data/lib/fog/azurerm/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 524c1f0c1c6c31d7d7fd46537968247958d85a5c34bd8d9a32b9999a40406058
|
4
|
+
data.tar.gz: 876712ef9579847efccf838bd144680b196cc3d9fe526c7cd72b2ebb5e68ff5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f32d3d8d593db5306da3458bbc348ccb5824b5ea2a34661b721755531f9d9c5b853fa365d6d71540b51160f80eb771a22fbe0a164aa59add05fc6d2d8ee1bc8
|
7
|
+
data.tar.gz: b4af7b5491fc177f1804a8a5078ffdd0ae93cfcc7bc3a4333eef1d179e74d22c64e87909901c96e081fdba9201c00bf36803e7896b55da6af82fde409822afeb
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
51
|
-
|
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
|
data/lib/fog/azurerm/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|