lib/credentials_manager/appfile_config.rb
# Override Appfile configuration for a specific lane.
#
# lane_name  - Symbol representing a lane name. (Can be either :name, 'name' or 'platform name')
# block - Block to execute to override configuration values.
#
# Discussion If received lane name does not match the lane name available as environment variable, no changes will
#             be applied.
Override Appfile configuration for a specific lane.
lane_name  - Symbol representing a lane name. (Can be either :name, 'name' or 'platform name')
block - Block to execute to override configuration values.

Discussion If received lane name does not match the lane name available as environment variable, no changes will
be applied.
Override Appfile configuration for a specific lane . lane_name - Symbol representing a lane name . ( Can be either : name ' name ' or ' platform name ' ) block - Block to execute to override configuration values . Discussion If received lane name does not match the lane name available as environment variable no changes will be applied .
def for_lane(lane_name, &block)
      if lane_name.to_s.split(" ").count > 1
        puts "You use deprecated syntax '#{lane_name}' in your Appfile.".yellow
        puts "Please follow the Appfile guide: https://github.com/KrauseFx/fastlane/blob/master/docs/Appfile.md".yellow
        platform, lane_name = lane_name.split(" ")
        return unless platform == ENV["FASTLANE_PLATFORM_NAME"]
      end
      if ENV["FASTLANE_LANE_NAME"] == lane_name.to_s
        block.call
      end
    end
def for_lane ( lane_name , & block ) if lane_name . to_s . split ( " " ) . count > 1 puts "You use deprecated syntax '#{lane_name}' in your Appfile." . yellow puts "Please follow the Appfile guide: https://github.com/KrauseFx/fastlane/blob/master/docs/Appfile.md" . yellow platform , lane_name = lane_name . split ( " " ) return unless platform == ENV [ "FASTLANE_PLATFORM_NAME" ] end if ENV [ "FASTLANE_LANE_NAME" ] == lane_name . to_s block . call end end
Override Appfile configuration for a specific lane.
Override Appfile configuration for a specific lane .
# That's the legacy syntax 'platform name' # the lane name will be verified below
lane_name
<not_specific>
block
<not_specific>