jjshell — 2013-02-09T03:05:59-05:00 — #1
I will have to write some code that can be triggered from the command line
$ myapp do something
Is ruby the way to go? Is Python better?
pullo — 2013-02-09T03:14:05-05:00 — #2
What does your code have to do?
If you ask me, Ruby is definitely the way to go, but I am biased
jjshell — 2013-02-09T06:55:31-05:00 — #3
Upload/Download files + connect to an API
Sounds like Ruby wil do the trick.
pullo — 2013-02-09T07:15:39-05:00 — #4
Uploading can be done with Net::FTP
Downloading like this:
or with Net::HTTP
Connecting to an API would depend on the API in question.
treybean — 2013-02-26T14:12:36-05:00 — #5
Ruby's a great command-line language, especially if you're already familiar with it. You can use all of the gems the ruby community has already written for talking to all sorts of APIs. [HTTParty and [URL="https://github.com/lostisland/faraday"]Faraday](http://johnnunemaker.com/httparty/) are both great http client gems that make it super easy to work with remote APIs.
oddz — 2013-02-26T18:37:27-05:00 — #6
You can just write any old ruby script and execute it from the command file. You can also do the same with several other languages. Nothing new really.