Sha256: efbef9805c8c6e52a50f826da6f7aadc4c775c797212b6774144e2c885d2c42c

Contents?: true

Size: 776 Bytes

Versions: 2

Compression:

Stored size: 776 Bytes

Contents

# VagrantSsh

An easy way to execute SSH commands on your Vagrant image.

## Installation

Add it to your application's Gemfile:

```bash
gem 'vagrant-ssh'
```

Or install it yourself as:

```bash
$ gem install vagrant-ssh
```

## Usage

To create an SSH connection to your Vagrant box:

```bash
@ssh = VagrantSsh::Shell.new('33.33.33.33')
@ssh.execute 'whoami'
=> I, [2015-07-13T16:42:25.127602 #82100]  INFO -- : Executing SSH command: whoami
=> I, [2015-07-13T16:42:25.142657 #82100]  INFO -- : vagrant
```

## Running the tests

Before running the tests, you need to create the Vagrant VM.

```bash
$ rake create_vm
```

You can then run the tests.

```bash
$ rake spec
```

Afterwards, you may want to destroy the Vagrant VM created above.

```bash
$ rake destroy_vm
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-ssh-2.1.0 README.md
vagrant-ssh-2.0.0 README.md