22 lines
509 B
Ruby
22 lines
509 B
Ruby
module Vagrant
|
|
module Command
|
|
class UpCommand < NamedBase
|
|
desc "Creates the Vagrant environment"
|
|
class_option :provision, :type => :boolean, :default => true
|
|
register "up"
|
|
|
|
def execute
|
|
# TODO: Make the options[:provision] actually mean something
|
|
target_vms.each do |vm|
|
|
if vm.created?
|
|
vm.env.ui.info "vagrant.commands.up.vm_created"
|
|
vm.start
|
|
else
|
|
vm.up
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|