Class: Fastlane::SupportedPlatforms
- Inherits:
-
Object
- Object
- Fastlane::SupportedPlatforms
- Defined in:
- lib/fastlane/supported_platforms.rb
Class Method Summary collapse
- .all ⇒ Object
-
.verify!(platform) ⇒ Object
this will throw an exception if the passed platform is not supported.
Class Method Details
.all ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/fastlane/supported_platforms.rb', line 3 def self.all [ :ios, :mac, :android ] end |
.verify!(platform) ⇒ Object
this will throw an exception if the passed platform is not supported
12 13 14 15 16 |
# File 'lib/fastlane/supported_platforms.rb', line 12 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 |