Project

discharger

0.0
The project is in a healthy, maintained state
Code supporting deployments.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Discharger

Code supporting tasks that discharge code for deployment.

Usage

Add require "discharger/task" to your Rakefile.

Then build the discharger task

require "discharger/task"

Discharger::Task.create do |task|
  task.version_file = "config/application.rb"
  task.release_message_channel = "#some-slack-channel"
  task.version_constant = "MyApp::VERSION"
  task.app_name = "My App name"
  task.commit_identifier = -> { `git rev-parse HEAD`.strip }
  task.pull_request_url = "https://github.com/SOFware/some-app"
end

It will make Rake tasks available to push code to branches and notify Slack channels.

$ rake -T release
rake release                            # ---------- STEP 3 ----------
rake release:build                      # Release the current version to stage
rake release:prepare                    # ---------- STEP 1 ----------
rake release:slack[text,channel,emoji]  # Send a message to Slack
rake release:stage                      # ---------- STEP 2 ----------

Installation

Add this line to your application's Gemfile:

gem "discharger"

And then execute:

$ bundle

Then run the install generator:

$ rails generate discharger:install

Or install it yourself as:

$ gem install discharger

Contributing

This gem is managed with Reissue.

Bug reports and pull requests are welcome on GitHub.

License

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