Class: Vagrant::Command::UpCommand

Inherits:
NamedBase show all
Defined in:
lib/vagrant/command/up.rb

Instance Attribute Summary

Attributes inherited from Base

#env

Instance Method Summary collapse

Methods inherited from Base

#initialize, register

Methods included from Helpers

#initialize_environment, #target_vms

Constructor Details

This class inherits a constructor from Vagrant::Command::Base

Instance Method Details

#executeObject



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

def execute
  target_vms.each do |vm|
    if vm.created?
      vm.env.ui.info I18n.t("vagrant.commands.up.vm_created")
      vm.start("provision.enabled" => options[:provision])
    else
      vm.up("provision.enabled" => options[:provision])
    end
  end
end