Sha256: fc2b460ec0d5a4aaf25ef14a2472e9dc2467c90a3d88204d5f28a31e5771813a
Contents?: true
Size: 659 Bytes
Versions: 10
Compression:
Stored size: 659 Bytes
Contents
module Vagrant class Commands # Halts a running vagrant instance. This forcibly halts the instance; # it is the equivalent of pulling the power on a machine. The instance # can be restarted again with {up}. # # This command requires than an instance already be brought up with # `vagrant up`. class Halt < Base Base.subcommand "halt", self description "Halts the currently running vagrant environment" def execute(args=[]) env.require_persisted_vm env.vm.execute!(Actions::VM::Halt) end def options_spec(opts) opts.banner = "Usage: vagrant halt" end end end end
Version data entries
10 entries across 10 versions & 2 rubygems