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
|
2015-09-17 05:45:22 +00:00
|
|
|
repository.commit_file(current_user, @file_path, @file_content, @commit_message, @target_branch, true)
|
2013-11-05 10:21:11 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|