gitlab.rake添加日志

This commit is contained in:
huang 2016-10-16 15:44:42 +08:00
parent 3f667a7afc
commit 9acef36369
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@ require 'trustie/gitlab/sync'
namespace :gitlab do
namespace :sync do
desc "sync users to gitlab"
Rails.logger.info("--------------------------------sync users to gitlab")
task :users => :environment do
# User.where(username: 'root').find_each do |user|
s = Trustie::Gitlab::Sync.new