BigW Consortium Gitlab

20140903115954_migrate_to_new_shell.rb 317 Bytes
Newer Older
1 2 3
class MigrateToNewShell < ActiveRecord::Migration
  def change
    gitlab_shell_path = Gitlab.config.gitlab_shell.path
4
    if system("#{gitlab_shell_path}/bin/create-hooks")
5 6 7 8 9 10
      puts 'Repositories updated with new hooks'
    else
      raise 'Failed to rewrite gitlab-shell hooks in repositories'
    end
  end
end