dcrec1/inploy — pull request #33 by svoop (2011-12-19 09:21:12+00:00)
Title: bundler_opts, after_git and more

bundler_opts
-----------------

As we discussed in some emails, here's the code to switch to bundler_opts. People who set bundler_path will bump into an error, but it's easy enough to figure out why, so transition code seems an unnecessary luxury. However, I've added a few lines to the README explaining things.

I've slightly altered the defaults:

```ruby
# before
bundle_path = "~/.bundle"

# now
bundle_opts = "--deployment --without development test cucumber"
```

The up to now hardcoded without stanza is now the default which allows the user to override this behaviour. (Useful for those who for some odd reason want to deploy development to a server.) The prior default path "~ /.bundle" is a little tricky when you deploy several Rails apps to the same box. It's better to vendor the gems into "vendor/bundle" and rely on Gemfile.lock - both of which the deployment switch does.

after_git callback
-----------------------

I've added a new callback after_git which is called whenever code changes are made thru git (setup, update, reset). This is very useful if you'd like to (over)write database.yml with a template already on the server after checking out stuff from the repo. It is called before the migrations and thus will work for the initial setup as well.

Misc
------

The other commits are minor stuff such as adding an if to skip the copy_sample_files step. See the commit messages for more.

Hope you like it :-)