Sha256: 9a96d2bee79b0f8ed50249771c434b52453296da41a56d648fdb15aba69839f5
Contents?: true
Size: 1.02 KB
Versions: 8
Compression:
Stored size: 1.02 KB
Contents
module Vagrant class Commands # Reload the environment. This is almost equivalent to the {up} command # except that it doesn't import the VM and do the initialize bootstrapping # of the instance. Instead, it forces a shutdown (if its running) of the # VM, updates the metadata (shared folders, forwarded ports), restarts # the VM, and then reruns the provisioning if enabled. class Reload < Base Base.subcommand "reload", self description "Reload the vagrant environment" def execute(args=[]) env.require_root_path all_or_single(args, :reload) end def reload_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.reload else vm.env.logger.info "VM '#{name}' not created. Ignoring." end end def options_spec(opts) opts.banner = "Usage: vagrant reload" end end end end
Version data entries
8 entries across 8 versions & 2 rubygems