Sha256: cab704054ff900a670992e713687f96f5acff1d58a8d785203149c5e01fbfd2d
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
#!/bin/bash cd .. GIT_DIR='.git' while read oldrev newrev refname do # Reset so we dont have unstaged changes... and then checkout the pushed ref git reset --hard HEAD git checkout $refname done <% if @config.rvm %> # Load RVM into a shell session *as a function* if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then # First try to load from a user install source "$HOME/.rvm/scripts/rvm" <% if @config.rvm == :rvmrc %> source .rvmrc <% else %> rvm use <%= @config.rvm %> <% end %> elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then # Then try to load from a root install source "/usr/local/rvm/scripts/rvm" <% if @config.rvm == :rvmrc %> source .rvmrc <% else %> rvm use <%= @config.rvm %> <% end %> else printf "ERROR: RVM was enabled in config but no RVM installation was not found.\n" fi <% end %> bundle --deployment --quiet --without development test <% unless @config.recipes.empty? %> bundle exec blazing recipes:run <% end %> <% if @config.rake %> rake <%= @config.rake %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blazing-0.1.2 | lib/blazing/templates/hook.erb |
blazing-0.1.1 | lib/blazing/templates/hook.erb |