walle/gas — pull request #4 by TheNotary (2011-10-10 22:31:50+00:00)
Title: SSH Functionality Started

Hey, this is a somewhat big change. Remember we needed a file space to store rsa keys? Well I figured the best place to put those files was ~/.gas, but with unix, you can't name a folder the same name as a file so I did a little migrating. That's the main big deal, once you run this gas, it will copy ~/.gas to memory, then delete the file and create save the file to ~/.gas/gas.authors (it's all fairly cleverly done, but just in case, backup your .gas file to .gas_back until you feel safe).

Another difference is that when you try to add a new author, it prompts you "Would you like gas to handle your rsa keys?"

Also check of the description '$ gas ssh' to read about it. Ideal, a more private gas would be able to determine the current isp and make sure that said isp is authorized to expose the ssh key in question. I'm going to do that coding last if I do it at all, but I think it's a worthy feature.

Lol, my wrist is kinda hurting from all this 'ctrl + s'ing i've been doing lately. maybe I will start to use Vim too. Ruby debuggers are SO primitive atm.

Oh, you also might want to back up your id_rsa file cause running the test sweet "Trys" to preserve your current key, but if I bugged somewhere, there's a potential for your rsa key to be lost.

My cleanest function is self.setup_ssh_keys(user) in ssh.rb

Check it out and tell me if those are good "ruby" names for methods; I have a C# background for program development and have only been at ruby for this year, and I've been focusing on ruby on rails which is certainly different.