Sha256: ea23e40be6ed56becb38954dcc35aa394f7e8d02405cca86234d3d47144ca2b7
Contents?: true
Size: 1.06 KB
Versions: 1
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 %> <% 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.alpha3 | lib/blazing/templates/hook.erb |