vagrant-list 0.0.3 → 0.0.4

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.
data/lib/vagrant-list.rb CHANGED
@@ -25,4 +25,5 @@ module Vagrant
25
25
  end
26
26
 
27
27
  Vagrant::Driver::VirtualBox_4_1.send(:include, Vagrant::Ext::Driver::DriverOverrides)
28
+ Vagrant::Driver::VirtualBox_4_2.send(:include, Vagrant::Ext::Driver::DriverOverrides)
28
29
  Vagrant.commands.register(:list) { Vagrant::List::All }
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module List
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -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
- execute("list", type.to_s, :retryable => true).split("\n").each do |line|
21
- next if line =~ /\A"<inaccessible>"/
22
- if vm = line[/^".+?" \{(.+?)\}$/, 1]
23
- results << vm
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.3
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-09-03 00:00:00.000000000 Z
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: 2079562314018200063
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: 2079562314018200063
107
+ hash: 1147938538648369966
108
108
  requirements: []
109
109
  rubyforge_project:
110
110
  rubygems_version: 1.8.24