Module: LastTweetRedux::Process
Instance Method Summary collapse
Instance Method Details
#init(config_path) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/last_tweet_redux.rb', line 9 def init(config_path) config = Configuration.new(config_path) job = Job.new(config) loop do job.run puts job.instance_eval { Marshal.load @client.get('last_tweet') } GC.start sleep config.interval end end |