Giter VIP home page Giter VIP logo

capfire's Introduction

Capfire (modified)

I made modifications to Capfire. Whee.

Add config/capfire.yml with something like:

room: "The Room"
token: 1c8bf396ade280b65ee5f7b428e43b9f3e6a6dc6
account: subdomain
pre_message: "#deployer# started a #application# deploy with `cap #args# (#compare_url#)"
post_message: "#deployer# finished the #application# deploy (#compare_url#)"

And add require "capfire/capistrano" to your Capfile

Original README below:

Capfire (original)

Inspired by http://github.com/blog/609-tracking-deploys-with-compare-view we , http://10to1.be, wanted the same for our deploys without having to copy paste each deploy script.

This gem adds a way to send a message to campfire after a deploy, in the message is the app-name, the github-compare view url and the deployer.

Since version 0.3.0 capfire will also check if the currently deployed version differs from the version you're about to deploy, aka see if you forgot to do a push before deploying. If this happens it'll also post a message to Campfire, since we all know public shaming JustWorks(tm).

Install

gem install capfire

Now either the generator: script/generate capfire -k "campfire_token" -r "chat_room" -a "campfire_account" This will create a ~/.campfire file and add a line to your config/deploy.rb file.

Or do it by hand: In your config/deploy.rb append require capfire/capistrano, in your home folder create .campfire with the following contents

campfire:
  account: your_campfire_account
  token: your_campfire_token
  room: the_campfire_chatroom_to_post in
  message: "I (#deployer#) deployed #application# with `cap #args# (#compare_url#)"

From now on your deploys will send a message to Campfire containing the Github-compare view url.

Options

Since it's initial release a few options have crept into capfire, take a look at `lib/capfire/capistrano' and look for cowsay, the same for the messages, they're all adjustable in your settings file. '

Multiple Projects

Either run the generator (without options since you've arleady got a ~/.campfire file it won't complain) again or append by hand the require capfire/capistrano line to your deploy file.

Usage

After the install you're done. Really, do a cap deploy and it should post to campfire.

If anoyone on the project doesn't have Capfire installed he won't notice a difference, no message will be sent.

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2010 Piet Jaspers 10to1. See LICENSE for details.

capfire's People

Contributors

atog avatar bpo avatar cimm avatar oelbrenner avatar tylerjohnst avatar

Stargazers

 avatar

Watchers

 avatar  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.