Sha256: 8a814c2ae5fbe3627a88f62acea77fee4b8ef00d6a21ded394f9b8c2097d4347
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
module Vagrant class Commands # Bring up a vagrant instance. This handles everything from importing # the base VM, setting up shared folders, forwarded ports, etc to # provisioning the instance with chef. {up} also starts the instance, # running it in the background. class Up < Base Base.subcommand "up", self description "Creates the vagrant environment" def execute(args=[]) all_or_single(args, :up) end def up_single(name) vm = env.vms[name.to_sym] if vm.nil? error_and_exit(:unknown_vm, :vm => name) return # for tests end if vm.created? vm.env.logger.info "VM '#{name}' already created. Booting if its not already running..." vm.start else vm.env.logger.info "Creating VM '#{name}'" vm.up end end def options_spec(opts) opts.banner = "Usage: vagrant up [--no-provision]" # Defaults options[:provision] = true opts.on("--no-provision", "Do not provision during this up.") do |v| options[:provision] = false end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
vagrantup-0.5.0 | lib/vagrant/commands/up.rb |
vagrant-0.5.0 | lib/vagrant/commands/up.rb |