Sha256: f4ada73476a4c5d21f61f306846feebc959e8313f98519242c0d6240c8bc2b09

Contents?: true

Size: 711 Bytes

Versions: 10

Compression:

Stored size: 711 Bytes

Contents

module Vagrant
  class Commands
    # Reload the environment. This is almost equivalent to the {up} command
    # except that it doesn't import the VM and do the initialize bootstrapping
    # of the instance. Instead, it forces a shutdown (if its running) of the
    # VM, updates the metadata (shared folders, forwarded ports), restarts
    # the VM, and then reruns the provisioning if enabled.
    class SSH < Base
      Base.subcommand "ssh", self
      description "SSH into the currently running environment"

      def execute(args=[])
        env.require_persisted_vm
        env.ssh.connect
      end

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

Version data entries

10 entries across 10 versions & 2 rubygems

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