Sha256: dc8d2009fdacff0c68f7e026a9e8af6a156e632ae9b1b3d4596f8ab7d9774c9c

Contents?: true

Size: 1021 Bytes

Versions: 2

Compression:

Stored size: 1021 Bytes

Contents

#!/usr/bin/env ruby

root = File.expand_path(File.join(File.dirname(__FILE__),'..'))
if File.directory?(File.join(root,'.git'))
  Dir.chdir(root) do
    begin
      require 'bundler/setup'
    rescue LoadError => e
      warn e.message
      warn "Run `gem install bundler` to install Bundler"
      exit -1
    end
  end
end

require 'feed_torrents'

FeedTorrents.configuration.filter_testing = true if ARGV.delete('--test-filters')

if ARGV.length != 1
  puts "Usage: #{$0} <configfile> [--test-filters]"
  puts "Retrieves rss lists every interval and downloads new torrents from torrent or magnet links"
  puts
  puts "  --test-filters      Prints all matches to STDOUT and won't do anything else"
  puts
  puts "Report bugs at: https://github.com/TvL2386/feed_torrents/issues"
  exit 1
else
  FeedTorrents.configuration.yaml_from_file ARGV[0]
end

if FeedTorrents.configuration.filter_testing?
  puts 'Filter testing enabled. Please press CTRL+C when you are done'.yellow.bold
  puts
end

FeedTorrents::Reactor.start!

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
feed_torrents-0.1.5 bin/feed_torrents
feed_torrents-0.1.4 bin/feed_torrents