Añade el plugin Redmine Git Hosting 5.0.0
This commit is contained in:
parent
cfa0d58b18
commit
a3bddad233
458 changed files with 30396 additions and 1 deletions
|
@ -0,0 +1,19 @@
|
|||
class GithostingShellWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
sidekiq_options queue: :redmine_git_hosting, retry: false
|
||||
|
||||
def self.maybe_do(command, object, options = {})
|
||||
args = [command.to_s, object, options]
|
||||
Sidekiq::Queue.new(:redmine_git_hosting).each do |job|
|
||||
return if job.args == args
|
||||
end
|
||||
|
||||
perform_async(command, object, options)
|
||||
end
|
||||
|
||||
def perform(command, object, options = {})
|
||||
logger.info("#{command} | #{object} | #{options}")
|
||||
RedmineGitHosting::GitoliteWrapper.resync_gitolite(command, object, options)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue