Sha256: 0637b58d6de0298ae42a3959dc6c97e4b18f191f39c3d1dfbfdbcdf35ab4e3be
Contents?: true
Size: 756 Bytes
Versions: 10
Compression:
Stored size: 756 Bytes
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=[]) if env.vm logger.info "VM already created. Starting VM if its not already running..." env.vm.start else env.require_box env.create_vm.execute!(Actions::VM::Up) end end def options_spec(opts) opts.banner = "Usage: vagrant up" end end end end
Version data entries
10 entries across 10 versions & 2 rubygems