Skip to content

caller9/retort

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retort

rtorrent xmlrpc wrapper written in ruby (1.9). Designed to decouple the xmlrpc interface from the underlying ruby objects.

Basic usage

Update your Gemfile with this and do a bundle install:

gem 'retort'

To get a list of all torrents:

require 'retort'
Retort::Service.configure {|config| config.url = 'https://username:password@your.server.com/path/to/rtorrent/rpc'}
torrents  = Retort::Torrent.all
torrent   = torrents.first

files     = torrent.files
file      = files.first

file.set_priority(Retort::File::PRIORITY_HIGH) # sets the priority
torrent.commit_priorities # this is supposed to be an expensive call

Contributions

To fetch & test the library for development, do:

$ git clone https://github.com/mcmorgan/retort
$ cd retort
$ bundle
$ bundle exec rspec spec

If you want to contribute, please:

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a future version unintentionally.
* Send me a pull request on Github.

Copyright © 2010-2011 Marcel Morgan. See LICENSE for details.

About

An rTorrent xmlrpc wrapper written in ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%