Gitag

Installation

Add this line to your application's Gemfile:

gem 'gitag'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gitag

Usage

require 'gitag'
Gitag.tag!('directory/to_monitor', Time.now.strftime('v%Y%m%d%H%M'))

or from command line:

$ gitag directory/to_monitor
$ gitag -t v201506091210 directory/to_monitor

Tag (-t) is optional.