Class: Highway::Steps::Library::ShStep

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

Class Method Summary collapse

Methods inherited from Step

root_parameter

Class Method Details

.nameObject



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

def self.name
  "sh"
end

.parametersObject



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

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

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



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

def self.run(parameters:, context:, report:)
  context.run_sh(parameters["command"])
end