Gst

Easily get Github's Status as Ruby objects or use the command line tool.

Motivation

I used to get these very often:

➜  repo-name git:(master) git push origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

And often I didn't know if it's my internet connection's fault, or GitHub's APIs had problems. And I am too lazy to open the browser and check status.github.com everytime I see the message above.

Installation

Add this line to your application's Gemfile:

gem 'gst'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gst

Usage

In Ruby

To get the current Github Status:

GST::Status.current 

To get the last Github Status message:

GST::Message.last

To get most recent Github Status messages:

GST::Message.recent

Via command line

The current API status:

ghstatus

Last API status as a human readable message:

ghstatus last     

Last few API statuses as a human readable messages:

ghstatus recent   

Help:

ghstatus help

Contributing

  1. Fork it ( http://github.com//gst/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request