README.md in net-ssh-session-0.1.5 vs README.md in net-ssh-session-0.1.6
- old
+ new
@@ -1,9 +1,11 @@
# Net::SSH::Session
A wrapper on top of `Net::SSH` and `Net::SSH::Shell` to provide a set of tools for ssh sessions
+[![Build Status](https://travis-ci.org/sosedoff/net-ssh-session.png?branch=master)](https://travis-ci.org/sosedoff/net-ssh-session)
+
## Install
Install with rubygems:
```
@@ -21,12 +23,17 @@
Basic usage:
```ruby
require 'net/ssh/session'
-# Establish a connection
+# Initialize a new connection
session = Net::SSH::Session.new(host, user, password)
+
+# Initialize connection on a different SSH port
+session = Net::SSH::Session.new(host, user, password, :port => 5000)
+
+# Connect to server
session.open
# If you want to set a connection timeout in seconds
# it will raise Timeout::Error
session.open(10)
@@ -191,18 +198,10 @@
```
This will limit any command execution time to 10 seconds. Error `Timeout::Error`
will be raised when timeout is exceeded.
-## Credits
-
-Library code was extracted and modified from multiple sources:
-
-- Dan Sosedoff (@sosedoff)
-- Mitchell Hashimoto (@mitchellh)
-- Michael Klishin (@michaelklishin)
-- Sven Fuchs (@svenfuchs)
-- Travis-CI (@travis-ci)
-
## License
-See LICENSE file for details
+The MIT License (MIT)
+
+Copyright (c) 2013 Dan Sosedoff, <dan.sosedoff@gmail.com>
\ No newline at end of file