| Start |
|---|
| How to write a command line tool to get the weather by zip code This will be a relatively comprehensive tutorial of how to write a command line tool to print the weather from the zip code provided to the command line tool. The first step is to write the program in ruby to do this action. Let's start by writing a method We now have a very basic method that gives the weather when a zip code is provided to it. Now we need to make this into a command line tool. Very quickly let's go over how a command line tool is called from the shell and the associated variables. When a tool is called like this Good! Now we have a command line application that can be run. Notice the she-bang line at the beginning of the file ( After testing that this works, we can now sym-link this to the Now |
Read Article
https://develop.horje.com/learn/1434/reference