gitlab-org--gitlab-foss/app/services/files/delete_service.rb
2016-09-19 10:00:26 -07:00

9 lines
266 B
Ruby

require_relative "base_service"
module Files
class DeleteService < Files::BaseService
def commit
repository.remove_file(current_user, @file_path, @commit_message, @target_branch, author_email: @author_email, author_name: @author_name)
end
end
end