2014-01-16 13:36:51 -05:00
|
|
|
require_relative "base_service"
|
2013-12-10 07:15:08 -05:00
|
|
|
|
2013-11-05 05:21:11 -05:00
|
|
|
module Files
|
2015-08-11 08:33:31 -04:00
|
|
|
class UpdateService < Files::BaseService
|
|
|
|
def commit
|
2016-07-06 06:25:45 -04:00
|
|
|
repository.update_file(current_user, @file_path, @file_content,
|
|
|
|
@target_branch, previous_path: @previous_path,
|
|
|
|
message: @commit_message, update: true)
|
2013-11-05 05:21:11 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|