Sha256: 4916efcd37782ac359133d10db83d83308051f4aef18475ade2d19270ba7df84

Contents?: true

Size: 380 Bytes

Versions: 61

Compression:

Stored size: 380 Bytes

Contents

module Vagrant
  module Command
    class SuspendCommand < NamedBase
      register "suspend", "Suspend a running Vagrant environment."

      def execute
        target_vms.each do |vm|
          if vm.created?
            vm.suspend
          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/suspend.rb
vagrantup-0.8.8 lib/vagrant/command/suspend.rb
vagrantup-0.8.7 lib/vagrant/command/suspend.rb
vagrantup-0.8.6 lib/vagrant/command/suspend.rb
vagrantup-0.8.5 lib/vagrant/command/suspend.rb
vagrantup-0.8.4 lib/vagrant/command/suspend.rb
vagrantup-0.8.3 lib/vagrant/command/suspend.rb
vagrantup-0.8.2 lib/vagrant/command/suspend.rb
vagrantup-0.8.10 lib/vagrant/command/suspend.rb
vagrantup-0.8.1 lib/vagrant/command/suspend.rb
vagrantup-0.8.0 lib/vagrant/command/suspend.rb
vagrantup-0.7.8 lib/vagrant/command/suspend.rb
vagrantup-0.7.7 lib/vagrant/command/suspend.rb
vagrantup-0.7.6 lib/vagrant/command/suspend.rb
vagrantup-0.7.5 lib/vagrant/command/suspend.rb
vagrantup-0.7.4 lib/vagrant/command/suspend.rb
vagrantup-0.7.3 lib/vagrant/command/suspend.rb
vagrantup-0.7.2 lib/vagrant/command/suspend.rb
vagrantup-0.7.1 lib/vagrant/command/suspend.rb
vagrantup-0.7.0 lib/vagrant/command/suspend.rb