Project

capushka

0.0
No commit activity in last 3 years
No release in over 3 years
Combines Babushka with Capistrano to allow you to run Babushka deps inside your recipes. See https://github.com/ivanvanderbyl/capushka
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8.7
~> 2.0.0

Runtime

~> 2.5.1
 Project Readme

Capistrano + Babushka = Capushka

This tiny gem does one thing: runs Babushka deps on all your servers from your Capistrano recipes and pass in variables.

Portions are based on Dollhouse.

Install

Gemfile:

gem 'capushka'

Example

in your config/deploy.rb

require "capushka"

...
# Usual deploy recipe stuff
...

namespace :setup do
  task :create_application_user do
    
    # This is the magic part
    babushka 'benhoskings:user exists', {:username => application}
    
  end
end

This will run Ben Hoskings' 'user exists' dep, which creates a new user in your application name, this is roughly equivalent to logging into each server and running:

babushka 'benhoskings:user exists'

And then entering the username every time it asks.

This does of course assume you have babushka bootstrapped, if not, run the bootstrap_babushka task

TODO:

  • Better error checking and handling from Babushka
  • Cleanup vars file when finished?
  • Don't overwrite vars file very time, consider merging options.
  • Cleanup STDOUT from babushka which doesn't play real nice with Capistrano
  • Don't run in parallel?
  • Write tests which work with Capistrano

Contributing

Once you've made your great commits:

  1. Fork This repository
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Send a pull request
  5. That's it!

Authors

Ivan Vanderbyl :: ivan at asterism dot com dot au :: @IvanVanderbyl

License

Copyright (c) 2010 Ivan Vanderbyl

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.