2013-11-05 10:06:52 +00:00
|
|
|
module Files
|
2014-01-16 17:03:42 +00:00
|
|
|
class BaseService < ::BaseService
|
2015-08-11 09:49:09 +00:00
|
|
|
attr_reader :ref, :path
|
2013-11-05 10:06:52 +00:00
|
|
|
|
2015-08-11 09:49:09 +00:00
|
|
|
def initialize(project, user, params, ref, path = nil)
|
|
|
|
@project, @current_user, @params = project, user, params.dup
|
|
|
|
@ref = ref
|
|
|
|
@path = path
|
2013-11-05 10:06:52 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
2015-08-11 08:28:42 +00:00
|
|
|
def repository
|
|
|
|
project.repository
|
|
|
|
end
|
2013-11-05 10:06:52 +00:00
|
|
|
end
|
|
|
|
end
|