Class: Files::MultiService

Inherits:
BaseService show all
Defined in:
app/services/files/multi_service.rb

Constant Summary collapse

UPDATE_FILE_ACTIONS =
%w[update move delete chmod].freeze

Constants inherited from BaseService

BaseService::FileChangedError

Constants inherited from Commits::CreateService

Commits::CreateService::ValidationError

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods inherited from BaseService

#file_has_changed?, #initialize

Methods inherited from Commits::CreateService

#execute, #initialize

Methods inherited from BaseService

#initialize

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

This class inherits a constructor from Files::BaseService

Instance Method Details

#create_commit!Object



7
8
9
10
11
12
13
14
# File 'app/services/files/multi_service.rb', line 7

def create_commit!
  transformer = Lfs::FileTransformer.new(project, repository, @branch_name)

  actions = actions_after_lfs_transformation(transformer, params[:actions])
  actions = transform_move_actions(actions)

  commit_actions!(actions)
end