Module: RepositoryStorageMovable

Extended by:
ActiveSupport::Concern
Includes:
AfterCommitQueue
Included in:
Projects::RepositoryStorageMove, Snippets::RepositoryStorageMove
Defined in:
app/models/concerns/repository_storage_movable.rb

Instance Method Summary collapse

Methods included from AfterCommitQueue

#run_after_commit, #run_after_commit_or_now

Instance Method Details

#add_error(message) ⇒ Object


110
111
112
# File 'app/models/concerns/repository_storage_movable.rb', line 110

def add_error(message)
  errors.add(error_key, message)
end

#schedule_repository_storage_update_workerObject

Raises:

  • (NotImplementedError)

106
107
108
# File 'app/models/concerns/repository_storage_movable.rb', line 106

def schedule_repository_storage_update_worker
  raise NotImplementedError
end

#update_repository_storage(new_storage) ⇒ Object

Projects, snippets, and group wikis has different db structure. In projects, we need to update some columns in this step, but we don't with the other resources.

Therefore, we create this No-op method for snippets and wikis and let project overwrite it in their implementation.


102
103
104
# File 'app/models/concerns/repository_storage_movable.rb', line 102

def update_repository_storage(new_storage)
  # No-op
end