fog-libvirt 0.12.0 → 0.12.1

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: 173406401f8c728989e70e75ae9765bffc53d84e14ae838db08576f34ba44539
4
- data.tar.gz: 58c5ac60c88a3a2cbdca2744231f939d5a4871db89d35e4cbf7483d5a2ef638b
3
+ metadata.gz: 12e7867890312a401d0733ed3bd058c7bfba0488d32748569d6de134e516a752
4
+ data.tar.gz: 1e37605f3bd9fee08a79d18d4383bcb68f38d88675f12ead62b6366afc1c0a60
5
5
  SHA512:
6
- metadata.gz: 1d23624637ceb4b353a83cbd5f0b49917adf1d8dc20a471eb05bfd04259a6b39fe40f3c689278a31c13e708d9a5e599b11da7bdf67fbaec622316a2ec2ed7082
7
- data.tar.gz: 00abab82645d5f8f9a176d2188c7e5c2d6004118f87195994a65b4ce4c949b0d3b52a23ca6dab19d4a9c83134bb8dc59742e9e81ecc41982306903b5290a32b7
6
+ metadata.gz: 6c5a173e6974eaa247bad12a3d3cacd10a43a1679dba49a361eb179e6a2a5d58ed12dacdab08b25c24ea49d05024f26b6c9564a2fb8fbf95be3e0500af6447c5
7
+ data.tar.gz: cb7536c410f12da3549d328e19dd6f997f0a3ae4795a90d6eea576bcca8e79a0c7a086ec8dc6b85c84e860d93ba70109d13cd3a0684769eec4991ff0c5311592
data/Gemfile CHANGED
@@ -6,4 +6,7 @@ group :development, :test do
6
6
  gem "octokit", :require => false
7
7
  end
8
8
 
9
+ # 0.8.3 breaks our tests
10
+ gem "ruby-libvirt", ">= 0.7.0", "< 0.8.3"
11
+
9
12
  gemspec
data/fog-libvirt.gemspec CHANGED
@@ -33,7 +33,6 @@ Gem::Specification.new do |s|
33
33
 
34
34
  s.add_development_dependency("net-ssh")
35
35
  s.add_development_dependency("minitest", "~> 5.0")
36
- s.add_development_dependency("minitest-stub-const")
37
36
  s.add_development_dependency("pry")
38
37
  s.add_development_dependency("rake")
39
38
  s.add_development_dependency("rubocop")
@@ -90,12 +90,13 @@ module Fog
90
90
  volumes.first.path if volumes and volumes.first
91
91
  end
92
92
 
93
- def destroy(options={ :destroy_volumes => false, :flags => 0 })
93
+ def destroy(options={ :destroy_volumes => false, :flags => ::Libvirt::Domain::UNDEFINE_NVRAM })
94
94
  poweroff unless stopped?
95
- if options.fetch(:flags, 0).zero?
95
+ flags = options.fetch(:flags, ::Libvirt::Domain::UNDEFINE_NVRAM)
96
+ if flags.zero?
96
97
  service.vm_action(uuid, :undefine)
97
98
  else
98
- service.vm_action(uuid, :undefine, options[:flags])
99
+ service.vm_action(uuid, :undefine, flags)
99
100
  end
100
101
  volumes.each { |vol| vol.destroy } if options[:destroy_volumes]
101
102
  true
@@ -408,7 +409,7 @@ module Fog
408
409
  graphics.autoport = "yes"
409
410
  end
410
411
  graphics.listen = display[:listen] unless display[:listen].empty?
411
- graphics.password = display[:password] unless display[:password].empty?
412
+ graphics.passwd = display[:password] unless display[:password].empty?
412
413
 
413
414
  xml.video do
414
415
  xml.model(:type => "cirrus", :vram => 9216, :heads => 1)
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Libvirt
3
- VERSION = '0.12.0'
3
+ VERSION = '0.12.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-libvirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-10 00:00:00.000000000 Z
11
+ date: 2024-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '5.0'
111
- - !ruby/object:Gem::Dependency
112
- name: minitest-stub-const
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: pry
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -334,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
334
320
  - !ruby/object:Gem::Version
335
321
  version: '0'
336
322
  requirements: []
337
- rubygems_version: 3.4.10
323
+ rubygems_version: 3.4.19
338
324
  signing_key:
339
325
  specification_version: 2
340
326
  summary: Module for the 'fog' gem to support libvirt