Giter Site home page Giter Site logo

deployment_notifications's Introduction

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.

deployment_notifications's People

Contributors

aashishgarg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.