[go: nahoru, domu]

Skip to content

Commit

Permalink
Document import_from_gem
Browse files Browse the repository at this point in the history
  • Loading branch information
lacostej committed Jan 18, 2024
1 parent e925077 commit 631cffc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/advanced/Fastfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,25 @@ end

This will also automatically import all the local actions from this repo.


## `import_from_gem`

Import from another ruby gem, which you can use to create a single package with common `Fastfile`s and actions for all your projects.

```ruby
import_from_gem(gem_name: 'my_gem')
# or
import_from_gem(gem_name: 'my_gem',
paths: ['fastlane/Fastfile', 'fastlane/Fastfile_*'])

lane :new_main_lane do
# ...
end
```

This will also automatically import all the local actions from this gem.


## Note

You should import the other `Fastfile` on the top above your lane declarations. When defining a new lane _fastlane_ will make sure to not run into any name conflicts. If you want to overwrite an existing lane (from the imported one), use the `override_lane` keyword.
Expand Down

0 comments on commit 631cffc

Please sign in to comment.