Skip to content

modcloth-labs/jsch-sftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsch-sftp

Build Status

A simple JRuby wrapper around the Java JSch library.

Installation

Add this line to your application's Gemfile:

gem 'jsch-sftp', github: 'modcloth-labs/jsch-sftp'

then execute:

$ bundle

Usage

require 'jsch'
require 'jsch/sftp'

Jsch::SFTP.start('host', 'user', identity: '/path/to/keyfile') do |sftp|
  sftp.entries('/').each do |entry|
    puts entry.name
  end

  sftp.upload!('/path/to/local', '/path/to/remote')
  sftp.download!('/path/to/remote', '/path/to/local')
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

JRuby wrapper around JSch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages