# File lib/twitter/cli.rb, line 168 def run do_work do post = ARGV.size > 1 ? ARGV.join(" ") : ARGV.shift say "Sending twitter update" finished, status = false, nil progress_thread = Thread.new { until finished; print "."; $stdout.flush; sleep 0.5; end; } post_thread = Thread.new(binding()) do |b| status = base.post(post, :source => Twitter::SourceName) finished = true end post_thread.join progress_thread.join say "Got it! New twitter created at: #{status.created_at}\n" end end