debian-mirror-gitlab/app/services/files/update_service.rb
2016-08-24 12:49:21 +05:30

13 lines
360 B
Ruby

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