class Fastlane::Actions::RunHighwayAction

The `run_highway` action that can be used inside Fastline.

Public Class Methods

available_options() click to toggle source

Available options of `run_highway` action.

Use the same behavior of computing option values as in lane entry point. First, get the actual values, then fall back to env variables, then fall back to default values.

@return [Array<FastlaneCore::ConfigItem>]

# File lib/highway/fastlane/action.rb, line 22
def self.available_options
  [
    FastlaneCore::ConfigItem.new(
      key: :highwayfile,
      description: "Path to Highway configuration file",
      type: String,
      optional: false,
      env_name: "HIGHWAY_HIGHWAYFILE",
      default_value: "Highwayfile.yml",
    ),
    FastlaneCore::ConfigItem.new(
      key: :preset,
      description: "Highway preset to run",
      type: String,
      optional: false,
      env_name: "HIGHWAY_PRESET",
      default_value: "default",
    ),
  ]
end
run(options) click to toggle source

Execute the `run_highway` action.

This is the main entry point of Highway.

@param options [Hash<String, Object>]

# File lib/highway/fastlane/action.rb, line 48
def self.run(options)

  # Run Highway from `:action` entry point.

  main = Highway::Main.new(
    entrypoint: :action,
    path: options[:highwayfile],
    preset: options[:preset],
    fastlane_runner: runner,
    fastlane_lane_context: lane_context,
  )

  main.run()

end