Class: Fastlane::Actions::EnCloseSimulatorAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/ciutils/actions/en_close_simulator.rb

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



16
17
18
# File 'lib/fastlane/plugin/ciutils/actions/en_close_simulator.rb', line 16

def self.authors
  ["Nicolae Ghimbovschi"]
end

.descriptionObject



12
13
14
# File 'lib/fastlane/plugin/ciutils/actions/en_close_simulator.rb', line 12

def self.description
  "Closes all simulator instances"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/fastlane/plugin/ciutils/actions/en_close_simulator.rb', line 20

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

.run(params) ⇒ Object



4
5
6
# File 'lib/fastlane/plugin/ciutils/actions/en_close_simulator.rb', line 4

def self.run(params)
  Fastlane::Actions.sh("osascript -e 'tell app \"Simulator\" to quit'", log: false)
end