fog-hyperv 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: 4f4fc7f6bb6e4beb182866dc8c274d15c25dbbdd
4
- data.tar.gz: da491628457575effecb17779afa392f0d02276b
3
+ metadata.gz: fe6d782233a6722d2154ac70cec0ae338bf5bac8
4
+ data.tar.gz: 869248c4e4c8c92b65c1f74f22661cb501a2dbb0
5
5
  SHA512:
6
- metadata.gz: 9bcc6fa50ef5d9d3ab0eef2fdb56937090186df326016c93e36d6a606defb257d52f3e66df9ded5512eddcebd996cf118fd84fb50437ea084dde3ec91b1270c7
7
- data.tar.gz: 003df173d2ab645056e6eeac5feea8b6cc987fabd1b80d65867684f395f84f36799e645da1b76c8286c7065510cdaae6b5c6aba99c7d45721544e72656deceeb
6
+ metadata.gz: 31abe8a044296350c114cea4e1bb7a7320b224e1e42537f8d4cf36f253020f3ca89394175369f955ad2ec978812c38ca2669de92adddfe3a997e2191eb27ee9d
7
+ data.tar.gz: 015668191289501a9e0520f48e8e51972ef1f2fd4e4ef782e9d8b6534423e0e8f923fe7ad8753e7e618d6d13562dbcd4a4c548ac35bc4b1caa8c6e313c35336b
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Fog Hyper-V
2
2
 
3
- [![Build Status](https://travis-ci.org/ace13/fog-hyperv.svg?branch=master)](https://travis-ci.org/ace13/fog-hyperv)
3
+ [![Build Status](https://travis-ci.org/ace13/fog-hyperv.svg?branch=master)](https://travis-ci.org/ace13/fog-hyperv) [![Gem Version](https://badge.fury.io/rb/fog-hyperv.svg)](https://badge.fury.io/rb/fog-hyperv)
4
4
 
5
5
  Manage your Hyper-V instance with the help of the Fog cloud service abstractions.
6
6
 
data/fog-hyperv.gemspec CHANGED
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'fog/hyperv/version'
@@ -19,7 +20,7 @@ Gem::Specification.new do |spec|
19
20
 
20
21
  spec.require_paths = ['lib']
21
22
 
22
- spec.add_runtime_dependency 'fog-core', '~> 1.44'
23
+ spec.add_runtime_dependency 'fog-core', '~> 1.42'
23
24
  spec.add_runtime_dependency 'fog-json', '~> 1.0'
24
25
  spec.add_runtime_dependency 'winrm', '~> 2.2'
25
26
 
@@ -17,7 +17,7 @@ module Fog
17
17
  attribute :mac_address
18
18
  attribute :name, type: :string, default: 'Network Adapter'
19
19
  # attribute :router_guard, type: :enum, values: [ :On, :Off ]
20
- attribute :status, type: :enum, values: STATUS_ENUM_VALUES
20
+ # attribute :status, type: :enum, values: STATUS_ENUM_VALUES
21
21
  attribute :switch_id
22
22
  attribute :switch_name, type: :string
23
23
  attribute :vm_id
@@ -61,8 +61,11 @@ module Fog
61
61
 
62
62
  %i(network_adapters dvd_drives floppy_drives hard_drives vhds).each do |attr|
63
63
  define_method attr do
64
- attributes[attr] ||= [] unless persisted?
65
- attributes[attr] ||= service.send(attr, vm: self)
64
+ if persisted?
65
+ attributes[attr] ||= service.send(attr, vm: self)
66
+ else
67
+ attributes[attr] ||= [] unless persisted?
68
+ end
66
69
  end
67
70
  end
68
71
 
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Hyperv
3
- VERSION = '0.0.1'.freeze
3
+ VERSION = '0.0.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-hyperv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Olofsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-25 00:00:00.000000000 Z
11
+ date: 2017-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.44'
19
+ version: '1.42'
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
- version: '1.44'
26
+ version: '1.42'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fog-json
29
29
  requirement: !ruby/object:Gem::Requirement