You will have already seen some examples of private lanes in your educational journey through this book, and in fact, we already have a private lane, Slack. While you should already be able to work out what private lanes are, it is worth discussing when and why you would create private lanes.
Private lanes are akin to private functions/methods in modern programming languages, allowing you to protect a specific block of code from being accessed externally. In the case of fastlane, you will want to create private lanes for bits of code that you just want to call within your Fastfile and not from Command Prompt or anywhere else outside. In our case, we put our nominated method as a private lane because we don’t want to expose the ability for people to call these methods from the command line, as we simply want to restrict its usability to those...