Method: Fastlane::FastFile#private_lane
- Defined in:
- fastlane/lib/fastlane/fast_file.rb
#private_lane(lane_name, &block) ⇒ Object
User defines a new private lane, which can’t be called from the CLI
96 97 98 99 100 101 102 103 104 105 106 |
# File 'fastlane/lib/fastlane/fast_file.rb', line 96 def private_lane(lane_name, &block) UI.user_error!("You have to pass a block using 'do' for lane '#{lane_name}'. Make sure you read the docs on GitHub.") unless block self.runner.add_lane(Lane.new(platform: self.current_platform, block: block, description: desc_collection, name: lane_name, is_private: true)) @desc_collection = nil # reset the collected description again for the next lane end |