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

Version Path
vagrantup-0.8.9 lib/vagrant/command/halt.rb
vagrantup-0.8.8 lib/vagrant/command/halt.rb
vagrantup-0.8.7 lib/vagrant/command/halt.rb
vagrantup-0.8.6 lib/vagrant/command/halt.rb
vagrantup-0.8.5 lib/vagrant/command/halt.rb
vagrantup-0.8.4 lib/vagrant/command/halt.rb
vagrantup-0.8.3 lib/vagrant/command/halt.rb
vagrantup-0.8.2 lib/vagrant/command/halt.rb
vagrantup-0.8.10 lib/vagrant/command/halt.rb
vagrantup-0.8.1 lib/vagrant/command/halt.rb
vagrantup-0.8.0 lib/vagrant/command/halt.rb
vagrantup-0.7.8 lib/vagrant/command/halt.rb
vagrantup-0.7.7 lib/vagrant/command/halt.rb
vagrantup-0.7.6 lib/vagrant/command/halt.rb
vagrantup-0.7.5 lib/vagrant/command/halt.rb
vagrantup-0.7.4 lib/vagrant/command/halt.rb
vagrantup-0.7.3 lib/vagrant/command/halt.rb
vagrantup-0.7.2 lib/vagrant/command/halt.rb
vagrantup-0.7.1 lib/vagrant/command/halt.rb
vagrantup-0.7.0 lib/vagrant/command/halt.rb