2013-11-19 14:14:06 +00:00
|
|
|
module Files
|
2015-08-11 12:33:31 +00:00
|
|
|
class DeleteService < Files::BaseService
|
|
|
|
def commit
|
2016-11-14 20:02:10 +00:00
|
|
|
repository.remove_file(
|
|
|
|
current_user,
|
|
|
|
@file_path,
|
|
|
|
@commit_message,
|
|
|
|
@target_branch,
|
|
|
|
author_email: @author_email,
|
|
|
|
author_name: @author_name,
|
|
|
|
source_branch: @source_branch)
|
2013-11-19 14:14:06 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|