GithubHelp home page GithubHelp logo

mikaelsmith / msmith-torrent_client Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 28 KB

A client for downloading files via the BitTorrent protocol from a torrent-server

License: Apache License 2.0

Ruby 90.57% Puppet 9.43%

msmith-torrent_client's Introduction

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with torrent_client
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

A client for downloading files via the BitTorrent protocol from a torrent-server.

Module Description

This module uses libtorrent BitTorrent library written in C++ to download files served from a torrent-server. Using BitTorrent to transfer files can result in faster transfers with less load on the file server.

The module includes two classes:

  • torrent_client to configure the system for downloading files using BitTorrent
  • torrent_file to download individual files

Setup

Beginning with torrent_client

Install libtorrent and boost as pre-requisites for building the torrent_client Ruby gem.

On Mac OS X, that can be done via Homebrew

brew install boost libtorrent-rasterbar

Usage

class {'::torrent_client':
  provider => 'puppet_gem',
}

Torrent_File {
  server => 'http://filehost:8000/torrent',
  port   => 5555,
}

torrent_file {'large file':
  path => '/tmp',
}

Reference

Classes

torrent_client

Install client prereqs; currently only torrent_client.

  • provider: select which package provider to use to install Ruby gems. Defaults to puppet_gem.

Resources

torrent_file

Downloads a file.

  • file: namevar, name of the file as stored on the server
  • ensure: ensure the file is present/absent
  • path: (required) fully qualified file path for a directory to download the file to
  • server: (required) torrent server name and port
  • port: port to use for the BitTorrent, defaults to 5555

msmith-torrent_client's People

Watchers

James Cloos avatar  avatar

msmith-torrent_client's Issues

Use future TorrentClient.purge method to delete files

Current ensure => absent behavior requires the resource title to be the name of the downloaded file, and cannot successfully delete multiple files if the torrent has them.

That behavior isn't too crazy, because currently the resource title is how a torrent package is requested from the server.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.