Sha256: 25c4dc4b7f9b9a50002278f9fda2a68a6923bf574c4f5c10c4c5f2cfe99cdb39

Contents?: true

Size: 665 Bytes

Versions: 601

Compression:

Stored size: 665 Bytes

Contents

module FastlaneCore
  class XcodebuildListOutputParser
    attr_reader :configurations
    attr_reader :schemes
    attr_reader :targets

    def initialize(output)
      @configurations = []
      @schemes = []
      @targets = []
      current = nil
      output.split("\n").each do |line|
        line = line.strip
        if line.empty?
          current = nil
        elsif line == "Targets:"
          current = @targets
        elsif line == "Schemes:"
          current = @schemes
        elsif line == "Build Configurations:"
          current = @configurations
        elsif !current.nil?
          current << line
        end
      end
    end
  end
end

Version data entries

601 entries across 601 versions & 2 rubygems

Version Path
fastlane-2.20.0.beta.20170304010023 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.20.0.beta.20170303010054 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.20.0.beta.20170302010029 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.1 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.0 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.0.beta.20170301010932 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.0.beta.20170228010016 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.0.beta.20170227010016 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.0.beta.20170226010028 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.0.beta.20170225010031 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.0.beta.20170224010025 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.18.3 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.0.beta.20170223010028 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.18.2 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.19.0.beta.20170222010016 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.18.1 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.18.0 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.18.0.beta.20170221010026 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.18.0.beta.20170220010017 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.18.0.beta.20170219010032 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb