Class: Fastlane::Actions::AndroidLaunchEmulatorAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::AndroidLaunchEmulatorAction
- Defined in:
- lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .output ⇒ Object
- .return_value ⇒ Object
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
52 53 54 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb', line 52 def self. ['Automattic'] end |
.available_options ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb', line 25 def self. [ FastlaneCore::ConfigItem.new(key: :avd_name, env_name: 'FL_ANDROID_LAUNCH_EMULATOR_AVD_NAME', description: 'The name of the AVD to boot', type: String, optional: false), FastlaneCore::ConfigItem.new(key: :cold_boot, env_name: 'FL_ANDROID_LAUNCH_EMULATOR_COLD_BOOT', description: 'Indicate if we want a cold boot (true) of if we prefer booting from a snapshot (false)', type: Fastlane::Boolean, default_value: true), FastlaneCore::ConfigItem.new(key: :wipe_data, env_name: 'FL_ANDROID_LAUNCH_EMULATOR_WIPE_DATA', description: 'Indicate if we want to wipe the device data before booting the AVD, so it is like it were a brand new device', type: Fastlane::Boolean, default_value: true), ] end |
.description ⇒ Object
17 18 19 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb', line 17 def self.description 'Boots an Android emulator using the given AVD name' end |
.details ⇒ Object
21 22 23 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb', line 21 def self.details description end |
.is_supported?(platform) ⇒ Boolean
56 57 58 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb', line 56 def self.is_supported?(platform) platform == :android end |
.output ⇒ Object
45 46 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb', line 45 def self.output end |
.return_value ⇒ Object
48 49 50 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb', line 48 def self.return_value 'The serial of the emulator that was created after booting the AVD (e.g. `emulator-5554`)' end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb', line 4 def self.run(params) helper = Fastlane::Helper::Android::EmulatorHelper.new helper.launch_avd( name: params[:avd_name], cold_boot: params[:cold_boot], wipe_data: params[:wipe_data] ) end |