vagrant-libvirt 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 531920cd3f0420b7e66b8524d4999ae76bdd7b72b25112cb7d5d4ad91e3b151c
|
4
|
+
data.tar.gz: fd8e444a917769d361e022bbf0278e5df263decec5e45672f69e1d95e5d68669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab2759ad2755cf174a2f4c9f855f2237dabdb2543fe3f3fad54edd70a27cdf6f8b8357279617efb02487ef04d5a5f3aa7b3e1ec047d8a4b2fda15ba84fca9dea
|
7
|
+
data.tar.gz: ad85d67c9f592a481bba252b3c820f677a8635bcb5f11be83be760245edea5d50745228d8034a61efd63897c1089390a1e6459d8f31c3957aaa6cbe61705b32e
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module VagrantPlugins
|
2
|
+
module ProviderLibvirt
|
3
|
+
module Action
|
4
|
+
# This class asks the user to confirm the destruction of a machine
|
5
|
+
# that Vagrant manages. This is provided as a built-in on top of
|
6
|
+
# {Confirm} because it sets up the proper keys and such so that
|
7
|
+
# `vagrant destroy -f` works properly.
|
8
|
+
class HaltConfirm < Vagrant::Action::Builtin::Confirm
|
9
|
+
def initialize(app, env)
|
10
|
+
force_key = :force_confirm_halt
|
11
|
+
message = I18n.t("vagrant_libvirt.package_confirm_halt",
|
12
|
+
name: env[:machine].name)
|
13
|
+
|
14
|
+
super(app, env, message, force_key, allowed: ["y", "n", "Y", "N"])
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
@@ -8,15 +8,16 @@ module VagrantPlugins
|
|
8
8
|
include VagrantPlugins::ProviderLibvirt::Util::Nfs
|
9
9
|
|
10
10
|
def initialize(app, _env)
|
11
|
+
@logger = Log4r::Logger.new('vagrant_libvirt::action::prune_nfs_exports')
|
11
12
|
@app = app
|
12
13
|
end
|
13
14
|
|
14
15
|
def call(env)
|
15
|
-
|
16
|
+
@machine = env[:machine]
|
16
17
|
|
17
|
-
|
18
|
+
if using_nfs?
|
18
19
|
@logger.info('Using NFS, prunning NFS settings from host')
|
19
|
-
|
20
|
+
if env[:host]
|
20
21
|
uuid = env[:machine].id
|
21
22
|
# get all uuids
|
22
23
|
uuids = env[:machine].provider.driver.connection.servers.all.map(&:id)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-libvirt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Stanek
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-05-
|
13
|
+
date: 2020-05-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec-core
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- lib/vagrant-libvirt/action/destroy_domain.rb
|
131
131
|
- lib/vagrant-libvirt/action/destroy_networks.rb
|
132
132
|
- lib/vagrant-libvirt/action/forward_ports.rb
|
133
|
+
- lib/vagrant-libvirt/action/halt_confirm.rb
|
133
134
|
- lib/vagrant-libvirt/action/halt_domain.rb
|
134
135
|
- lib/vagrant-libvirt/action/handle_box_image.rb
|
135
136
|
- lib/vagrant-libvirt/action/handle_storage_pool.rb
|
@@ -208,20 +209,20 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
209
|
- !ruby/object:Gem::Version
|
209
210
|
version: '0'
|
210
211
|
requirements: []
|
211
|
-
rubygems_version: 3.0.
|
212
|
+
rubygems_version: 3.0.6
|
212
213
|
signing_key:
|
213
214
|
specification_version: 4
|
214
215
|
summary: libvirt provider for Vagrant.
|
215
216
|
test_files:
|
217
|
+
- spec/support/libvirt_context.rb
|
218
|
+
- spec/support/sharedcontext.rb
|
219
|
+
- spec/support/environment_helper.rb
|
220
|
+
- spec/unit/templates/domain_all_settings.xml
|
221
|
+
- spec/unit/templates/domain_custom_cpu_model.xml
|
222
|
+
- spec/unit/templates/domain_defaults.xml
|
223
|
+
- spec/unit/templates/domain_spec.rb
|
216
224
|
- spec/unit/action/wait_till_up_spec.rb
|
217
225
|
- spec/unit/action/destroy_domain_spec.rb
|
218
226
|
- spec/unit/action/set_name_of_domain_spec.rb
|
219
227
|
- spec/unit/config_spec.rb
|
220
|
-
- spec/unit/templates/domain_defaults.xml
|
221
|
-
- spec/unit/templates/domain_all_settings.xml
|
222
|
-
- spec/unit/templates/domain_spec.rb
|
223
|
-
- spec/unit/templates/domain_custom_cpu_model.xml
|
224
|
-
- spec/support/libvirt_context.rb
|
225
|
-
- spec/support/environment_helper.rb
|
226
|
-
- spec/support/sharedcontext.rb
|
227
228
|
- spec/spec_helper.rb
|