Creating my first Gem
A while back I started using the RightScale API to automate some tasks related to servers that we have in the cloud. Initially, all the work was done using scripts in various languages, but with Curl calls to the API. Switching over to writing all my tools in Ruby, I realized that the API was lacking when it came to authentication and ease of use.
Being that I am lazy, I did what any good coder would do, and created a class to handle the connections.
Normally, things would end there. But, being that I have started working with Ruby and Gems, I decided that I was going to create a Gem. This was mainly so that as I write new tools, I would not have to add this library manually to all of my apps. Ruby Gems provide a nice mechanism to add code/libraries to a machine for use by various programs.
All this leads to my learning process of how to create a Gem, and add it to the open RubyGems collection. I am going to try and recount all the steps that are needed. Hopefully in an order that will make more sense than the one that I went through to get my first gem added to the public domain.
April 30, 2012
|
Posted by Eric VanWieren
Categories:
Tags: