torrent_client

A simple Ruby torrent downloader


License
Apache-2.0
Install
gem install torrent_client -v 0.2.1

Documentation

torrent_client

A simple Ruby BitTorrent client based on libtorrent-rasterbar

Setup

Requires Boost and libtorrent. On Mac OS X these can be setup with Homebrew

brew install boost libtorrent-rasterbar

Usage

# Returns true if the torrent payload is complete on-disk, false otherwise.
TorrentClient.verify '<file>.torrent' '<destination_dir>'

# Downloads the torrent payload to the destination_dir. Returns when complete.
TorrentClient.download '<file>.torrent' '<destination_dir>'