Class: Highway::Steps::Library::CopyArtifactsStep

Inherits:
Step
  • Object
show all
Defined in:
lib/highway/steps/library/copy_artifacts.rb

Class Method Summary collapse

Methods inherited from Step

root_parameter

Class Method Details

.nameObject



14
15
16
# File 'lib/highway/steps/library/copy_artifacts.rb', line 14

def self.name
  "copy_artifacts"
end

.parametersObject



18
19
20
21
22
23
24
25
26
# File 'lib/highway/steps/library/copy_artifacts.rb', line 18

def self.parameters
  [
    Parameters::Single.new(
      name: "path",
      required: true,
      type: Types::String.new(),
    )
  ]
end

.run(parameters:, context:, report:) ⇒ Object



28
29
30
# File 'lib/highway/steps/library/copy_artifacts.rb', line 28

def self.run(parameters:, context:, report:)
  FileUtils.copy_entry(context.artifacts_dir, parameters["path"], false, false, false)
end