gitlab-org--gitlab-foss/app/services/files/delete_service.rb

9 lines
210 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)
end
end
end