Sha256: ab721436deafe4230e3b863d14db34b924d2564e10784a3ebdc06b13d493898a
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
# encoding: UTF-8 module Earthquake init do command :exit do |m| stop end command :help do |m| puts "TODO..." end command :restart do |m| puts 'restarting...' exec File.expand_path('../../..//bin/earthquake', __FILE__) end command :eval do |m| ap eval(m[1]) end # update command %r|^[^/]+| do |m| twitter.update(m[0]) if confirm(m[0]) end command %r|^/reply (\d+)\s+(.*)|, :as => :reply do |m| # TODO ap m end command :status do |m| puts_item twitter.status(m[1]) end command :delete do |m| twitter.status_destroy(m[1]) end command :retweet do |m| twitter.retweet(m[1]) end command :favorite do |m| twitter.favorite(m[1]) end command :unfavorite do |m| twitter.unfavorite(m[1]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
earthquake-0.1.0 | lib/earthquake/commands.rb |