Sha256: 23f0bcf4f21883c475386e8212261db2eace6e400cbbd36b79146dffba18a218
Contents?: true
Size: 463 Bytes
Versions: 61
Compression:
Stored size: 463 Bytes
Contents
module Vagrant module Command class HaltCommand < NamedBase class_option :force, :type => :boolean, :default => false, :aliases => "-f" register "halt", "Halt the running VMs in the environment" def execute target_vms.each do |vm| if vm.created? vm.halt(options) else vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_created") end end end end end end
Version data entries
61 entries across 61 versions & 5 rubygems