Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
Branch: master
Pull request Compare This branch is 1 commit ahead, 46 commits behind dsander:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.document
.gitignore
LICENSE
README.markdown
README.rdoc
Rakefile
VERSION

README.markdown

transmission-client: A Transmission RPC Client

The goal is to support all requests described in the Transmission RPC Specifications.

Installing

You need to have http://gemcutter.org in you gem sources. To add it you can execute either

sudo gem install gemcutter
sudo gem tumble`

or

sudo gem source -a http://gemcutter.org

To install transmission-client:

sudo gem install transmission-client

Usage

Get a list of torrents and print its file names:

require 'transmission-client'
t = Transmission::Client.new('192.168.0.2')
t.torrents.each do |torrent|
    puts torrent.name
end

t = Transmission::Client.new t.add_torrent('filename' => File.expand_path("~/tmp/my_file.torrent"), 'download-dir' => File.expand_path("~/Downloads/"))

RDoc is still to be written, at the meantime have a look at the code to find out which methods are supported.

Something went wrong with that request. Please try again.