Class: Twitter2Campfire::CLI
- Inherits:
-
Thor
- Object
- Thor
- Twitter2Campfire::CLI
- Defined in:
- lib/twitter2campfire/cli.rb
Instance Method Summary collapse
Instance Method Details
#go(path_to_config_file) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/twitter2campfire/cli.rb', line 6 def go(path_to_config_file) config = YAML.load(File.read(path_to_config_file)) cache_file = config['cache_file'] || "/var/lib/twitter2campfire.cache" campfire = Tinder::Campfire.new config['subdomain'], :ssl => config['ssl'] campfire.login config['username'], config['password'] t = Twitter2Campfire.new(config['url'], campfire, config['room'], cache_file, {}) t.publish_entries end |