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