Sha256: 7b749eece14de14c1bdce144220f31426a97a30694740b837f625c8e8f74b6d1
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 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 %> <% unless @config.recipes.empty? %> blazing recipes:run <% end %> <% if @config.rake %> rake <%= @config.rake %> <% end %> <%# bundle --deployment%> <%# bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile%> <%# touch tmp/restart.txt%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blazing-0.1.0.alpha4 | lib/blazing/templates/hook.erb |