0.0
No commit activity in last 3 years
No release in over 3 years
An easy way to execute SSH commands on your Vagrant image.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10
~> 3
~> 0.29

Runtime

 Project Readme

VagrantSsh

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

Installation

Add it to your application's Gemfile:

gem 'vagrant-ssh'

Or install it yourself as:

$ gem install vagrant-ssh

Usage

To create an SSH connection to your Vagrant box:

@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.

$ rake create_vm

You can then run the tests.

$ rake spec

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

$ rake destroy_vm