Skip to content

Commit ebc036d

Browse files
committed
Document import_from_gem
1 parent 1a5a24a commit ebc036d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/advanced/Fastfile.md

+19
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,25 @@ end
114114

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

117+
118+
## `import_from_gem`
119+
120+
Import from another ruby gem, which you can use to create a single package with common `Fastfile`s and actions for all your projects.
121+
122+
```ruby
123+
import_from_gem(gem_name: 'my_gem')
124+
# or
125+
import_from_gem(gem_name: 'my_gem',
126+
paths: ['fastlane/Fastfile', 'fastlane/Fastfile_*'])
127+
128+
lane :new_main_lane do
129+
# ...
130+
end
131+
```
132+
133+
This will also automatically import all the local actions from this gem.
134+
135+
117136
## Note
118137

119138
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.

0 commit comments

Comments
 (0)