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?
Nevermind, I think i got it. I made this nifty little lane:
I use it like this: