summaryrefslogtreecommitdiff
path: root/app/services/files/update_service.rb
blob: aaac3da935566379a1718d0144b4f087e082d052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require_relative "base_service"

module Files
  class UpdateService < Files::BaseService
    def commit
      repository.update_file(current_user, @file_path, @file_content,
                             branch: @target_branch,
                             previous_path: @previous_path,
                             message: @commit_message)


    end
  end
end