debian-mirror-gitlab/app/services/files/update_service.rb

13 lines
360 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
require_relative "base_service"
module Files
2015-09-25 12:07:36 +05:30
class UpdateService < Files::BaseService
def commit
2016-08-24 12:49:21 +05:30
repository.update_file(current_user, @file_path, @file_content,
branch: @target_branch,
previous_path: @previous_path,
message: @commit_message)
2014-09-02 18:07:02 +05:30
end
end
end