Class: Fastlane::Actions::SimctlAction

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

Class Method Summary collapse

Class Method Details

.authorsObject



14
15
16
# File 'lib/fastlane/plugin/simctl/actions/simctl_action.rb', line 14

def self.authors
  ["Renzo Crisostomo"]
end

.available_optionsObject



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/fastlane/plugin/simctl/actions/simctl_action.rb', line 22

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :block,
                         description: "A Ruby block given to execute in the context of a Simulator ready",
                            optional: false,
                                type: Proc),
    FastlaneCore::ConfigItem.new(key: :runtime,
                         description: "iOS Runtime used to create the simulator",
                            optional: true,
                                type: String,
                       default_value: 'latest'),
    FastlaneCore::ConfigItem.new(key: :type,
                         description: "iOS device type used to create the simulator",
                            optional: true,
                                type: String,
                       default_value: 'iPhone 6'),
    FastlaneCore::ConfigItem.new(key: :name,
                         description: "String used to set the name to the simulator",
                            optional: true,
                                type: String,
                       default_value: nil)
  ]
end

.descriptionObject



10
11
12
# File 'lib/fastlane/plugin/simctl/actions/simctl_action.rb', line 10

def self.description
  "Fastlane plugin to interact with xcrun simctl."
end

.detailsObject



18
19
20
# File 'lib/fastlane/plugin/simctl/actions/simctl_action.rb', line 18

def self.details
  "Fastlane plugin to interact with xcrun simctl. Manage your iOS Simulators directly from your Fastfile."
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/fastlane/plugin/simctl/actions/simctl_action.rb', line 46

def self.is_supported?(platform)
  [:ios].include?(platform)
end

.run(params) ⇒ Object



6
7
8
# File 'lib/fastlane/plugin/simctl/actions/simctl_action.rb', line 6

def self.run(params)
  Helper::SimctlHelper.execute_with_simulator_ready(self, params[:block], params[:runtime], params[:type], params[:name])
end