gitlab-org--gitlab-foss/app/services/files/delete_service.rb
Lin Jen-Shin 3fa3fcd787 Cleanup parameters, easier to understand and
more consistent across different methodst
2016-12-08 17:08:25 +08:00

14 lines
348 B
Ruby

module Files
class DeleteService < Files::BaseService
def commit
repository.remove_file(
current_user,
@file_path,
message: @commit_message,
branch_name: @target_branch,
author_email: @author_email,
author_name: @author_name,
source_branch_name: @source_branch)
end
end
end