#!/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' if ARGV.length != 1 puts "Usage: #{$0} " exit 1 else FeedTorrents.configuration.yaml_from_file ARGV[0] end FeedTorrents::Reactor.start!