Class: Fastlane::Actions::AndroidShutdownEmulatorAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



39
40
41
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb', line 39

def self.authors
  ['Automattic']
end

.available_optionsObject



21
22
23
24
25
26
27
28
29
30
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb', line 21

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :serials,
                                 env_name: 'FL_ANDROID_SHUTDOWN_EMULATOR_SERIALS',
                                 description: 'The serial(s) of the emulators to shut down. If not provided (nil), will shut them all down',
                                 type: Array,
                                 optional: true,
                                 default_value: nil),
  ]
end

.descriptionObject



13
14
15
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb', line 13

def self.description
  'Shuts down Android emulators'
end

.detailsObject



17
18
19
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb', line 17

def self.details
  description
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb', line 43

def self.is_supported?(platform)
  platform == :android
end

.outputObject



32
33
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb', line 32

def self.output
end

.return_valueObject



35
36
37
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb', line 35

def self.return_value
  # If you method provides a return value, you can describe here what it does
end

.run(params) ⇒ Object



4
5
6
7
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb', line 4

def self.run(params)
  helper = Fastlane::Helper::Android::EmulatorHelper.new
  helper.shut_down_emulators!(serials: params[:serials])
end