vagrant-mro 0.0.1 → 0.0.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 +4 -4
- data/lib/vagrant-mro/command.rb +11 -13
- data/lib/vagrant-mro/plugin.rb +0 -1
- data/lib/vagrant-mro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afdd0fe1a76d4457de684a6143a4c2c236197d70
|
4
|
+
data.tar.gz: 4dc156228395af035b4022a2c8fe8f5cc66d8dd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7535c5376162a9991c61e7971ddf6fefee4c142e5cc2b8005ef43b854ad5215d1b546dc97af05621fd87718f682c6e158ed5e5a4a6dc45645669faea5aa71c0e
|
7
|
+
data.tar.gz: 3a217457883973d140fdf6120b749c87b3db48348daff7cb4d5f5abc1a617cac49fe1691270541fcfceea8b8f2d5da32f1788b7ee0d587fade87cf88c492814c
|
data/lib/vagrant-mro/command.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'vagrant/util/silence_warnings'
|
2
|
+
|
1
3
|
module VagrantPlugins
|
2
4
|
module MRO
|
3
5
|
class Command < Vagrant.plugin("2", :command)
|
@@ -7,23 +9,19 @@ module VagrantPlugins
|
|
7
9
|
|
8
10
|
def execute
|
9
11
|
attrs = [:id, :name, :state]
|
10
|
-
|
12
|
+
@env.ui.warn("I'm here", new_line: true)
|
11
13
|
entries = []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
Vagrant::Util::SilenceWarnings.silence! do
|
15
|
+
@env.machine_index.each do |entry|
|
16
|
+
# Always prune invalid entries.
|
17
|
+
if !entry.valid?(@env.home_path)
|
18
|
+
@env.machine_index.delete(entry.id)
|
19
|
+
end
|
20
|
+
entries << entry
|
18
21
|
end
|
19
|
-
entries << entry
|
20
|
-
end
|
21
|
-
# Prune all the entries to prune
|
22
|
-
prune.each do |entry|
|
23
|
-
deletable = @env.machine_index.get(entry.id)
|
24
|
-
@env.machine_index.delete(deletable) if deletable
|
25
22
|
end
|
26
23
|
|
24
|
+
@env.ui.warn "here", new_line: true
|
27
25
|
if entries.empty?
|
28
26
|
@env.ui.info(I18n.t("vagrant.global_status_none"))
|
29
27
|
return 0
|
data/lib/vagrant-mro/plugin.rb
CHANGED
data/lib/vagrant-mro/version.rb
CHANGED