vagrant-list 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/lib/vagrant-list.rb
CHANGED
data/lib/vagrant-list/version.rb
CHANGED
@@ -17,11 +17,15 @@ module Vagrant
|
|
17
17
|
# it is used to query for a list of VMs to display
|
18
18
|
def read_vms(type = :vms)
|
19
19
|
results = []
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
begin
|
21
|
+
execute("list", type.to_s, :retryable => true).split("\n").each do |line|
|
22
|
+
next if line =~ /\A"<inaccessible>"/
|
23
|
+
if vm = line[/^".+?" \{(.+?)\}$/, 1]
|
24
|
+
results << vm
|
25
|
+
end
|
24
26
|
end
|
27
|
+
rescue
|
28
|
+
puts "Could not list #{type.to_s}"
|
25
29
|
end
|
26
30
|
|
27
31
|
results
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: vagrant
|
@@ -95,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
segments:
|
97
97
|
- 0
|
98
|
-
hash:
|
98
|
+
hash: 1147938538648369966
|
99
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
101
|
requirements:
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
segments:
|
106
106
|
- 0
|
107
|
-
hash:
|
107
|
+
hash: 1147938538648369966
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
110
|
rubygems_version: 1.8.24
|