class Highway::Steps::Library::ActionStep
Public Class Methods
name()
click to toggle source
# File lib/highway/steps/library/action.rb, line 14 def self.name "action" end
parameters()
click to toggle source
# File lib/highway/steps/library/action.rb, line 18 def self.parameters [ Parameters::Single.new( name: "name", required: true, type: Types::String.new(), ), Parameters::Single.new( name: "options", required: false, type: Types::Hash.new(Types::Any.new()), default: {}, ), ] end
run(parameters:, context:, report:)
click to toggle source
# File lib/highway/steps/library/action.rb, line 34 def self.run(parameters:, context:, report:) context.run_action(parameters["name"], options: parameters["options"]) end