Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.