Class: Gitlab::ImportExport::AfterExportStrategies::WebUploadStrategy

Inherits:
BaseAfterExportStrategy show all
Defined in:
lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb

Constant Summary collapse

PUT_METHOD =
'PUT'
POST_METHOD =
'POST'
INVALID_HTTP_METHOD =
'invalid. Only PUT and POST methods allowed.'

Constants inherited from BaseAfterExportStrategy

BaseAfterExportStrategy::StrategyError

Constants included from CommandLineUtil

CommandLineUtil::DEFAULT_DIR_MODE, CommandLineUtil::FileOversizedError, CommandLineUtil::UNTAR_MASK

Instance Method Summary collapse

Methods inherited from BaseAfterExportStrategy

#archive_path, #ensure_export_ready!, #ensure_lock_files_path!, #execute, #lock_files_path, #locks_present?, #method_missing, #to_json

Methods included from CommandLineUtil

#gunzip, #gzip, #gzip_with_options, #mkdir_p, #tar_cf, #tar_czf, #untar_xf, #untar_zxf

Constructor Details

#initialize(url:, http_method: PUT_METHOD) ⇒ WebUploadStrategy

Returns a new instance of WebUploadStrategy.


19
20
21
# File 'lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb', line 19

def initialize(url:, http_method: PUT_METHOD)
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Gitlab::ImportExport::AfterExportStrategies::BaseAfterExportStrategy