Method: Spaceship::ConnectAPI::BundleIdPlatform.map
- Defined in:
- spaceship/lib/spaceship/connect_api.rb
.map(platform) ⇒ Object
99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'spaceship/lib/spaceship/connect_api.rb', line 99 def self.map(platform) return platform if ALL.include?(platform) # Map from fastlane input and Spaceship::TestFlight platform values case platform.to_sym when :osx, :macos, :mac return Spaceship::ConnectAPI::Platform::MAC_OS when :ios return Spaceship::ConnectAPI::Platform::IOS else raise "Cannot find a matching platform for '#{platform}' - valid values are #{ALL.join(', ')}" end end |