|
|||||||
Aversa (Ruby BitTorrent tools front end)
> ./aversa download foo.torrent
require ‘aversa’ Aversa.main(‘download’, ‘foo.torrent’)
# or call the method directly without going thru optparser: Aversa.download(‘foo.torrent’)
# Design_Notes # # The idea from Pike, Python - if we define a module/main function then # it is easy to use the program from other ruby scripts.
# Until some day wget supports bittorrent protocol …
> aversa dl http://example.com/foo.torrent
This program WILL NOT contain any logic codes.
It is this program's role to be the front end component for other tools.
e.g. rename: It may be one-liner:
def rename(metainfo_file, new_name)
MetaInfo.new(file){ |m| m['info']['name'] = new_name }.save(file)
end
But should not write logic codes in this program,
It should be separated for maintenance.
| Author: | Ikkei Shimomura |
| Project WebSite: | aversa.rubyforge.org |
| Required files |
| Classes and Modules |