Sha256: d7fae98b54ce6e8e1c368c873aea6b45a75d9b4389272e4455439b49cae25173
Contents?: true
Size: 957 Bytes
Versions: 19
Compression:
Stored size: 957 Bytes
Contents
require 'optparse' require 'vagrant/command/start_mixins' module Vagrant module Command class Up < Base include StartMixins def execute options = {} opts = OptionParser.new do |opts| opts.banner = "Usage: vagrant up [vm-name] [--[no-]provision] [-h]" opts.separator "" build_start_options(opts, options) end # Parse the options argv = parse_options(opts) return if !argv # Go over each VM and bring it up @logger.debug("'Up' each target VM...") with_target_vms(argv) do |vm| if vm.created? @logger.info("Booting: #{vm.name}") vm.ui.info I18n.t("vagrant.commands.up.vm_created") vm.start(options) else @logger.info("Creating: #{vm.name}") vm.up(options) end end # Success, exit status 0 0 end end end end
Version data entries
19 entries across 19 versions & 6 rubygems