Sha256: acd86ade60e65fa8ef4285839544dc14a7bf6951f6ed001a3a2d5556050dae4d

Contents?: true

Size: 553 Bytes

Versions: 10

Compression:

Stored size: 553 Bytes

Contents

module Vagrant
  class Commands
    # Resume a running vagrant instance. This resumes an already suspended
    # instance (from {suspend}).
    #
    # This command requires that an instance already be brought up with
    # `vagrant up`.
    class Resume < Base
      Base.subcommand "resume", self
      description "Resumes a suspend vagrant environment"

      def execute(args=[])
        env.require_persisted_vm
        env.vm.resume
      end

      def options_spec(opts)
        opts.banner = "Usage: vagrant resume"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrantup-0.3.4 lib/vagrant/commands/resume.rb
vagrantup-0.3.3 lib/vagrant/commands/resume.rb
vagrantup-0.3.2 lib/vagrant/commands/resume.rb
vagrantup-0.3.1 lib/vagrant/commands/resume.rb
vagrantup-0.3.0 lib/vagrant/commands/resume.rb
vagrant-0.3.4 lib/vagrant/commands/resume.rb
vagrant-0.3.3 lib/vagrant/commands/resume.rb
vagrant-0.3.2 lib/vagrant/commands/resume.rb
vagrant-0.3.1 lib/vagrant/commands/resume.rb
vagrant-0.3.0 lib/vagrant/commands/resume.rb