Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly IS the code in a Fastfile

Doesn't look like a straight Ruby class, so what exactly is it? One large Ruby "block", some custom metalanguage that gets parsed? Just curious. I know you can use Ruby within a Fastfile; how far does that paradigm reach, can you define classes or functions within a Fastfile or does it have to remain only the 'lanes' concept fastlane supports?

like image 917
stonedauwg Avatar asked Jan 30 '17 15:01

stonedauwg


People also ask

What language is Fastfile written?

I noticed that the fastlane configuration file, Fastfile , was written in Ruby. So, my first thought was to wrap the path to the bash script in backticks and move on… until I found out about a better way.

Is Fastfile a ruby?

fastlane is an open-source suite of tools that allows you to automate your iOS or Android mobile app releases, potentially saving you hours of development time. It is powered by a Ruby configuration file called a Fastfile, in which you can add lanes to serve different purposes.

Whats a Fastfile?

The Fastfile stores the automation configuration that can be run with fastlane. The Fastfile has to be inside your ./fastlane directory. The Fastfile is used to configure fastlane. Open it in your favourite text editor, using Ruby syntax highlighting.


1 Answers

Doesn't look like a straight Ruby class

Not a class, no. But plain ruby nonetheless. With a bit of DSL magic.

What this means is that you're free to define classes or otherwise do anything you want, as long as you still configure fastlane properly (invoke lane methods and whatnot).

like image 68
Sergio Tulentsev Avatar answered Sep 17 '22 14:09

Sergio Tulentsev