Skip to content

ivanvanderbyl/capushka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Combines Babushka with Capistrano to create awesome.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages