Sha256: 9ed0baf3e83104e6ca4fd13cabd6d18387cf5789b5f17b41d3a56c7abf7b59a9

Contents?: true

Size: 397 Bytes

Versions: 42

Compression:

Stored size: 397 Bytes

Contents

module Fastlane
  class SupportedPlatforms
    def self.all
      [
        :ios,
        :mac,
        :android
      ]
    end

    # this will throw an exception if the passed platform is not supported
    def self.verify!(platform)
      unless all.include?platform.to_s.to_sym
        raise "Platform '#{platform}' is not supported. Must be either #{self.all}".red
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
fastlane-1.6.0 lib/fastlane/supported_platforms.rb
fastlane-1.5.0 lib/fastlane/supported_platforms.rb
fastlane-1.4.0 lib/fastlane/supported_platforms.rb
fastlane-1.3.2 lib/fastlane/supported_platforms.rb
fastlane-1.3.1 lib/fastlane/supported_platforms.rb
fastlane-1.3.0 lib/fastlane/supported_platforms.rb
fastlane-1.2.3 lib/fastlane/supported_platforms.rb
fastlane-1.2.2 lib/fastlane/supported_platforms.rb
fastlane-1.2.1 lib/fastlane/supported_platforms.rb
fastlane-1.2.0 lib/fastlane/supported_platforms.rb
fastlane-1.1.0 lib/fastlane/supported_platforms.rb
fastlane-1.0.2 lib/fastlane/supported_platforms.rb
fastlane-1.0.1 lib/fastlane/supported_platforms.rb
fastlane-1.0.0 lib/fastlane/supported_platforms.rb
fastlane-0.13.0 lib/fastlane/supported_platforms.rb
fastlane-0.12.5 lib/fastlane/supported_platforms.rb
fastlane-0.12.4 lib/fastlane/supported_platforms.rb
fastlane-0.12.3 lib/fastlane/supported_platforms.rb
fastlane-0.12.2 lib/fastlane/supported_platforms.rb
fastlane-0.12.1 lib/fastlane/supported_platforms.rb