Created
October 29, 2012 07:33
-
-
Save mixflame/3972148 to your computer and use it in GitHub Desktop.
Ruboto Text Me Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task :send_text do | |
# black magic | |
text = ARGV.last | |
require 'socket' | |
ts = TCPSocket.open('localhost', 5554) | |
unless ts.closed? | |
ts.puts("sms send 1231231234 #{text}") | |
end | |
# supplementary magic | |
task text.to_sym do ; end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment