Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (14 sloc) 0.408 kB
task :deploy, [:remote] do |t, args|
sh 'git diff --quiet HEAD'
sh <<-'END'
sed -i -e "s!@@VERSION@@!$(git describe --always --dirty)!g" $(
for i in $(git ls-files)
do
test -f "$i" && ! test -h "$i" && echo "$i"
done
)
END
sh 'git commit -am "Replace version numbers"'
sh 'git reset --hard HEAD~1'
sh "git push #{args.remote || 'heroku'} HEAD@{1}:master -f"
end
Jump to Line
Something went wrong with that request. Please try again.