26 lines
532 B
Ruby
26 lines
532 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Backup
|
|
module Cli
|
|
module Tasks
|
|
class Artifacts < Task
|
|
def self.id = 'artifacts'
|
|
|
|
def human_name = _('artifacts')
|
|
|
|
def destination_path = 'artifacts.tar.gz'
|
|
|
|
private
|
|
|
|
def target
|
|
check_object_storage(::Backup::Targets::Files.new(nil, storage_path, options: options, excludes: ['tmp']))
|
|
end
|
|
|
|
def storage_path = context.ci_job_artifacts_path
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|