github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

tpitale / net-simple

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Simple wrapper around net-ssh and net-scp — Read more

  cancel

http://t.pitale.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

initial gem implementation 
tpitale (author)
Sat May 02 20:18:44 -0700 2009
commit  a4404d1fb6293d89aa25c88cd3e11c218b4c5506
tree    e659af224c6cfc90391634e9ab2b95287e5c53ee
parent  3446dddf8ae4ff6ba80330abf75350996907cdf2
net-simple /
name age
history
message
file .gitignore Loading commit data...
file README.textile
file Rakefile
directory lib/
file net-simple.gemspec
directory test/
README.textile

net-simple

Description

A simple wrapper for net-ssh and net-scp which allows running commands and
transferring files. Inspired by some functionality found

Installation

sudo gem install tpitale-net-simple

Usage

require ‘net/simple’

Make a connection:

host = Net::Simple.new(‘ip or host’, ‘username’, ‘password’)

Three ways to run a command:

host.connect do run(‘ls’) end host.with_connection do |conn| conn.run(‘ls’) end host.connect host.run(‘ls’) host.close

License

Copyright © 2009 Tony Pitale

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the “Software”), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server