Class: Fastlane::SupportedPlatforms
- Inherits:
-
Object
- Object
- Fastlane::SupportedPlatforms
- Defined in:
- fastlane/lib/fastlane/supported_platforms.rb
Class Attribute Summary collapse
-
.default ⇒ Object
readonly
Returns the value of attribute default.
-
.extra ⇒ Object
Returns the value of attribute extra.
Class Method Summary collapse
- .all ⇒ Object
-
.verify!(platform) ⇒ Object
this will log a warning if the passed platform is not supported.
Class Attribute Details
.default ⇒ Object (readonly)
Returns the value of attribute default.
5 6 7 |
# File 'fastlane/lib/fastlane/supported_platforms.rb', line 5 def default @default end |
.extra ⇒ Object
Returns the value of attribute extra.
4 5 6 |
# File 'fastlane/lib/fastlane/supported_platforms.rb', line 4 def extra @extra end |
Class Method Details
.all ⇒ Object
17 18 19 |
# File 'fastlane/lib/fastlane/supported_platforms.rb', line 17 def self.all (@default + @extra).flatten end |
.verify!(platform) ⇒ Object
this will log a warning if the passed platform is not supported
22 23 24 25 26 |
# File 'fastlane/lib/fastlane/supported_platforms.rb', line 22 def self.verify!(platform) unless all.include?(platform.to_s.to_sym) UI.important("Platform '#{platform}' is not officially supported. Currently supported platforms are #{self.all}.") end end |