Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discharger

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discharger

  • 0.2.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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:config                     # Echo the configuration settings
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.

FAQs

Package last updated on 01 Nov 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc