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