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

18 lines
478 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
module Files
2017-08-17 22:00:37 +05:30
class BaseService < Commits::CreateService
def initialize(*args)
super
2017-08-17 22:00:37 +05:30
@author_email = params[:author_email]
@author_name = params[:author_name]
2015-09-25 12:07:36 +05:30
@commit_message = params[:commit_message]
2017-08-17 22:00:37 +05:30
@file_path = params[:file_path]
@previous_path = params[:previous_path]
2015-09-25 12:07:36 +05:30
2017-08-17 22:00:37 +05:30
@file_content = params[:file_content]
@file_content = Base64.decode64(@file_content) if params[:file_content_encoding] == 'base64'
2014-09-02 18:07:02 +05:30
end
end
end