Skip to content

Instantly share code, notes, and snippets.

@ngauthier
Created March 31, 2014 14:08
Show Gist options
  • Save ngauthier/9893086 to your computer and use it in GitHub Desktop.
Save ngauthier/9893086 to your computer and use it in GitHub Desktop.
Bink CLI Example
#!/usr/bin/env ruby
require_relative '../config/environment'
Bundler.require :bot
name = ARGV[1]
csv = "#{name}.csv"
bot = Bink.new csv
command = ARGV[0]
case command
when "scrape"
config = YAML.load File.read "#{name}.yml"
bot.scrape config
when "update"
bot.update
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment