Socket
Book a DemoInstallSign in
Socket

tagistrano

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tagistrano

0.0.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Tagistrano

Automatically generate version-based git tags on Capistrano deploys.

This gem assumes you are using a X.X.X (major.minor.patch) version tag strategy. Once set up, you will be prompted to choose a new tag every time a cap task is run. The options will be generated by incrementing the highest existing version tag.

For example, if your project's current tag is 1.2.3, the prompt will look like this:

Tag: (leave blank to skip tagging)
1. Major 2.0.0
2. Minor 1.3.0
3. Patch 1.2.4

Allowing you to easily bump your project version, or skip tagging if no new version is required.

Installation

Add this line to your application's Gemfile:

gem 'tagistrano'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tagistrano

Finally, add the following line to your Capfile:

require 'tagistrano'

Usage

Call the following method wherever you want the tag prompt to show:

tag_release

This can be called in several places:

  • In your deploy.rb file, to prompt on every cap task
  • If using multiple stages, in individual stage files, to prompt on every cap task for that stage
  • In cap tasks, to only prompt for that specific task

License

The gem is available as open source under the terms of the MIT License.

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

About Foraker Labs

This project is maintained by Foraker Labs. The names and logos of Foraker Labs are fully owned and copyright Foraker Design, LLC.

Foraker Labs is a Boulder-based Ruby on Rails and iOS development shop. Please reach out if we can help build your product.

FAQs

Package last updated on 04 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.