# File lib/t/cli.rb, line 600 def retweet(status_id, *status_ids) status_ids.unshift(status_id) status_ids.map!(&:strip_commas) retweets = status_ids.threaded_map do |status_id| retryable(:tries => 3, :on => Twitter::Error::ServerError, :sleep => 0) do client.retweet(status_id.to_i, :trim_user => true) end end number = retweets.length say "@#{@rcfile.active_profile[0]} retweeted #{number} #{number == 1 ? 'tweet' : 'tweets'}." say say "Run `#{File.basename($0)} delete status #{status_ids.join(' ')}` to undo." end