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.82.0.beta.20180222010003 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.82.0.beta.20180221010003 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.82.0.beta.20180220010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.82.0.beta.20180219010003 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.82.0.beta.20180218010003 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.82.0.beta.20180217010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.82.0.beta.20180216010003 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.82.0.beta.20180215010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.82.0.beta.20180214010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180213010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180212010003 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180211010003 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180210010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180209010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180208010003 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180207010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180206010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180205010003 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb
fastlane-2.81.0.beta.20180204010002 fastlane_core/lib/fastlane_core/xcodebuild_list_output_parser.rb