Implementing a fastlane plugin

Before we look at third-party action plugins, we will quickly examine the structure of a built-in plugin; in fact, one we have already implemented previously, add_git_tag (https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/actions/add_git_tag.rb). While we used it in the previous chapter, it helps to understand the inner workings of the plugin, as well as the available mandatory and optional parameters/arguments.

You can view documentation for a specific built-in plugin/action by calling fastlane action action_name; for instance:

$ fastlane action add_git_tag

This would return to Command Prompt:

Loading documentation for add_git_tag: +-----------------------------------------------------------------------------------------------------------------+ ...

Get Continuous Delivery for Mobile with fastlane now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.