Create branch for tag

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2013-12-13 15:22:27 +02:00
parent 440f3f384f
commit 99830bb6f8
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 1 additions and 4 deletions

View File

@ -44,14 +44,11 @@ module Gitlab
last_tag = git_tags.last.match(/v\d\.\d\.\d/).to_s last_tag = git_tags.last.match(/v\d\.\d\.\d/).to_s
end end
def git_las_tags
end
def update_commands def update_commands
{ {
"Stash changed files" => "git stash", "Stash changed files" => "git stash",
"Get latest code" => "git fetch", "Get latest code" => "git fetch",
"Switch to new version" => "git checkout v#{latest_version}", "Switch to new version" => "git checkout -b v#{latest_version}",
"Install gems" => "bundle", "Install gems" => "bundle",
"Migrate DB" => "bundle exec rake db:migrate RAILS_ENV=production", "Migrate DB" => "bundle exec rake db:migrate RAILS_ENV=production",
"Recompile assets" => "bundle exec rake assets:clean assets:precompile RAILS_ENV=production", "Recompile assets" => "bundle exec rake assets:clean assets:precompile RAILS_ENV=production",