commented creating of repo, continuation

This commit is contained in:
duratarskeyk 2015-12-17 13:19:20 +00:00
parent 21229dbf7e
commit 43b7c2c2eb
1 changed files with 4 additions and 4 deletions

View File

@ -13,13 +13,13 @@ module Git
validates_attachment_content_type :srpm, content_type: ['application/octet-stream', "application/x-rpm", "application/x-redhat-package-manager"], message: I18n.t('layout.invalid_content_type')
#after_create :create_git_repo
after_commit(on: :create) {|p| p.fork_git_repo unless p.is_root?} # later with resque
after_commit(on: :create) {|p| p.import_attached_srpm if p.srpm?} # later with resque # should be after create_git_repo
#after_commit(on: :create) {|p| p.fork_git_repo unless p.is_root?} # later with resque
#after_commit(on: :create) {|p| p.import_attached_srpm if p.srpm?} # later with resque # should be after create_git_repo
#after_destroy :destroy_git_repo
# after_rollback -> { destroy_git_repo rescue true if new_record? }
later :import_attached_srpm, queue: :fork_import
later :fork_git_repo, queue: :fork_import
#later :import_attached_srpm, queue: :fork_import
#later :fork_git_repo, queue: :fork_import
end
def repo