Mitchell Hashimoto 8340472fc5 vagrant up
2010-08-24 23:03:37 -07:00

24 lines
590 B
Ruby

module Vagrant
module Command
class UpCommand < Base
desc "Creates the Vagrant environment"
argument :name, :type => :string, :optional => true
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 "VM already created. Booting if its not already running..."
vm.start
else
vm.up
end
end
end
end
end
end