Class: Vagrant::List::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-list/command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/vagrant-list/command.rb', line 6

def execute
  @env.ui.info "ALL:"
  Vagrant::List::VirtualBox::List.all.each do |uuid|
    @env.ui.info Vagrant::List::VMInfo.new(uuid).inspect
  end

  @env.ui.info "RUNNING:"
  Vagrant::List::VirtualBox::List.running.each do |uuid|
    @env.ui.info Vagrant::List::VMInfo.new(uuid).inspect
  end
end