Class: Highway::Steps::Library::CopyArtifactsStep
- Defined in:
- lib/highway/steps/library/copy_artifacts.rb
Class Method Summary collapse
Methods inherited from Step
Class Method Details
.name ⇒ Object
14 15 16 |
# File 'lib/highway/steps/library/copy_artifacts.rb', line 14 def self.name "copy_artifacts" end |
.parameters ⇒ Object
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 |