Wfstatus

This gem is designed to help developers who are responsible for managing applications on multiple Webfaction servers. The Webfaction Status Blog is an excellent resource, but requires a developer to remember the names of all servers for which she is responsible.

This tool allows the developer to specify a hash of servers of interest keyed to site names or other information in a YAML config file. When the gem executes, it selects recent posts from the status blog which mention any of the configured servers and emails the developer with the information.

Installation

$ gem install wfstatus

Sample wfstatus.yml

# the webfaction status blog url
blog_url: http://statusblog.webfaction.com

# server name: a description of your sites hosted at the server
servers: 
    web313: 'wibble.com, myclient.com'
    web369: 'pigsinhelicopters.com'
    web344: 'bigclient.com (main server)'
    web406: 'bigclient.com (server 2)'

# smtp email settings
smtp: 
    address:                 smtp.webfaction.com
    port:                    587
    domain:                  mydomain.com
    user_name:               myusername
    password:                mypassword
    authentication:          plain
    enable_starttls_auto:    true

# mail settings
mail:
    from:       [email protected]
    to:         [email protected]
    subject:    Webfaction status Update

# your time zone offset
utc_offset: -08:00

Usage

$ wfstatus wfstatus.yml

Todo

Add some options to allow the user to prevent multiple emails about the same post.

Contributing

  1. Fork it
  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