30 lines
407 B
Ruby
30 lines
407 B
Ruby
module Projects
|
|
class Base
|
|
|
|
include RedmineGitHosting::GitoliteAccessor::Methods
|
|
|
|
attr_reader :project
|
|
attr_reader :options
|
|
|
|
|
|
def initialize(project, opts = {})
|
|
@project = project
|
|
@options = opts
|
|
end
|
|
|
|
|
|
class << self
|
|
|
|
def call(project, opts = {})
|
|
new(project, opts).call
|
|
end
|
|
|
|
end
|
|
|
|
|
|
def call
|
|
raise NotImplementedError
|
|
end
|
|
|
|
end
|
|
end
|