Project

retort

0.02
No commit activity in last 3 years
No release in over 3 years
An rTorrent xmlrpc wrapper written in ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

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 do |config| 
  config.url = 'https://username:password@your.server.com/path/to/rtorrent/rpc'
end
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.