Get name of lane in Fastfile

Viewed 1533

I'm setting up a Fastfile for fastlane, and I'm trying to switch on the lane name that fastlane is beeing run with.

Say I run fastlane wow

In this Fastfile, I want to get the name of the current lane that fastlanewas called with, which is "wow":

wowness = (lane[:lane-name] == "wow" ? "Much wow" : "Not so wow")
puts wowness

lane :wow do |options|
    puts "print something random"
end

As far as I understand the fastlane uses Ruby, so maybe this could be the way to go?

2 Answers
Related