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

deployment_notifications

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deployment_notifications

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

DeploymentNotifications

DeploymentNotifications is a gem that integrates with Capistrano and Slackistrano to provide custom deployment messages to your Slack channel. This gem simplifies the setup process by automatically configuring the necessary settings.

Installation

Add this line to your application's Gemfile:

gem 'deployment_notifications', path: '/path/to/your/local/gem'

And then execute:

bundle install

Configuration

Step 1: Configure the Gem in an Initializer

Create a new initializer file in your Rails application, e.g., config/initializers/deployment_notifications.rb, and configure it as follows:

DeploymentNotifications.configure do |config|
  config.channel = '#your-slack-channel'
  config.webhook = 'https://hooks.slack.com/services/YOUR/WEBHOOK/URL'
end

Step 2: Capfile Modifications

The gem automatically adds the necessary require 'slackistrano/capistrano' line to your Capfile. If you need to verify or manually add it, your Capfile should include:

require 'slackistrano/capistrano'

Step 3: Deployment Configuration

Ensure that your Capistrano deploy configuration is set up correctly. The gem will automatically set the Slackistrano configuration based on the provided initializer settings.

Usage

Once configured, you can deploy your application using Capistrano as usual:

cap production deploy

Deployment notifications will be sent to your specified Slack channel using the custom messaging format defined in the DeploymentNotifications gem.

Custom Messaging

The gem provides a custom messaging format for deployment notifications. It sends detailed deployment information at the start, success, and failure stages of your deployment process.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/your-username/deployment_notifications.

License

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

Make sure to replace '/path/to/your/local/gem' with the actual path to your gem and update the GitHub repository URL to your actual repository.

FAQs

Package last updated on 29 Jul 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