class Fastlane::Actions::DefaultPlatformAction
Public Class Methods
category()
click to toggle source
# File fastlane/lib/fastlane/actions/default_platform.rb, line 34 def self.category :misc end
description()
click to toggle source
# File fastlane/lib/fastlane/actions/default_platform.rb, line 18 def self.description "Defines a default platform to not have to specify the platform" end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/default_platform.rb, line 28 def self.example_code [ 'default_platform(:android)' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/default_platform.rb, line 42 def self.is_supported?(platform) true end
output()
click to toggle source
# File fastlane/lib/fastlane/actions/default_platform.rb, line 22 def self.output [ ['DEFAULT_PLATFORM', 'The default platform'] ] end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/default_platform.rb, line 8 def self.run(params) UI.user_error!("You forgot to pass the default platform") if params.first.nil? platform = params.first.to_sym SupportedPlatforms.verify!(platform) Actions.lane_context[SharedValues::DEFAULT_PLATFORM] = platform end