Class: Fastlane::Actions::DevicelabBotAction

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

Class Method Summary collapse

Class Method Details

.authorsObject



19
20
21
# File 'lib/fastlane/plugin/devicelab_bot/actions/devicelab_bot_action.rb', line 19

def self.authors
  ["Almouro"]
end

.available_optionsObject



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/fastlane/plugin/devicelab_bot/actions/devicelab_bot_action.rb', line 32

def self.available_options
  [
    FastlaneCore::ConfigItem.new(
      key: :base_url,
      env_name: "DEVICELAB_BOT_BASE_URL",
      description: "Base url for your devicelab bot",
      optional: false,
      type: String,
    ),
    FastlaneCore::ConfigItem.new(
      key: :app_name,
      env_name: "DEVICELAB_BOT_APP_NAME",
      description: "Base url for your devicelab bot",
      optional: false,
      type: String,
      default_value: ENV['IOS_APP_NAME'],
    ),
  ]
end

.descriptionObject



15
16
17
# File 'lib/fastlane/plugin/devicelab_bot/actions/devicelab_bot_action.rb', line 15

def self.description
  "Automatically install your app on your devicelab with the devicelab bot"
end

.detailsObject



27
28
29
30
# File 'lib/fastlane/plugin/devicelab_bot/actions/devicelab_bot_action.rb', line 27

def self.details
  # Optional:
  "Automatically install your app on your devicelab with the devicelab bot"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/fastlane/plugin/devicelab_bot/actions/devicelab_bot_action.rb', line 52

def self.is_supported?(platform)
  true
end

.return_valueObject



23
24
25
# File 'lib/fastlane/plugin/devicelab_bot/actions/devicelab_bot_action.rb', line 23

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

.run(params) ⇒ Object



8
9
10
11
12
13
# File 'lib/fastlane/plugin/devicelab_bot/actions/devicelab_bot_action.rb', line 8

def self.run(params)
  Helper::AppInstaller.new(
    params[:base_url],
    params[:app_name],
  ).install()
end