google-calendar

Posting delivery events to Google Calendar

| 4 Comments

Introduction

One day our client asked us about product deployment notification. Initially we wanted to use mail-list or create special skype chat, but it turned out to be unreliable and inconvenient:

  • hard to filter notification emails
  • hard to track deploment history
  • newly added person can’t observe old events

So we “thinked different”© and made next simple solution.

Google Calendar

What’s about using Google Calendar as event storage? It has many useful features:

  • stores any event history
  • provides chronological event representation for free
  • we can easily subscribe/unsubscribe to/from notification feed
  • calendar can be easily customized in different ways(e.g. colors, size)
  • you can embed calendar directly into any html-page via iframe
  • you can access your calendar on any android/iphone device

Capistrano Calendar

We extracted our calendar recipes and released as
capistrano-calendar gem.

Features

  • Posting events to multiple google calendars
  • Automatic calendar creation if it does not exist
  • Ability to dynamically choose calendar name according to your needs (e.g. production/staging calendar)
  • Ability to customize host for calendar event creation

How does it work

Event creation takes some time so we decided to run it in background. And it’s better to spawn it on some server. By default this is first application server. But you can set special host for calendar event creation using calendar_runner option. So you need to install capistrano-calendar on that server too.

Recipe calendar:create_event is pretty simple. It collects all calendar information from Capistrano configuration and pass them to capistrano-calendar binary(from our gem):

Installation

Install gem:

To activate capistrano-calendar recipes, add next line into your project Capfile:

Add at least minimal calendar configuration to config/deploy.rb:

Take a look into README file to get more advanced configuration sample and a full list of options.

Mobile

Your customer will be happy to have actual deployment information in his calendar on the phone, and it’s quite simple. Just share this calendar to your customer. Then he should add and sync this calendar on his phone.
Enjoy!

Share
* Railsware is a premium software development consulting company, focused on delivering great web and mobile applications. Learn more about us.

Want to get more of Railsware blog?

RSS FEED

We're always ready to help!

CONTACT US