Class: Fastlane::Actions::InstallTransporterAction

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

Class Method Summary collapse

Class Method Details

.authorsObject



20
21
22
# File 'lib/fastlane/plugin/transporter/actions/install_transporter_action.rb', line 20

def self.authors
  ["Maksym Grebenets"]
end

.available_optionsObject



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

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :source,
                            env_name: "INSTALL_TRANSPORTER_SOURCE",
                         description: "A path or URI to Transporter tarball or directory",
                       default_value: Transporter::DEFAULT_TRANSPORTER_SOURCE,
                                type: String),
    FastlaneCore::ConfigItem.new(key: :install_path,
                            env_name: "INSTALL_TRANSPORTER_INSTALL_PATH",
                         description: "Transporter install path",
                       default_value: Transporter::DEFAULT_TRANSPORTER_INSTALL_PATH,
                                type: String),
    FastlaneCore::ConfigItem.new(key: :overwrite,
                            env_name: "INSTALL_TRANSPORTER_OVERWRITE",
                         description: "Overwrite existing installation",
                       default_value: false,
                                type: Boolean)
  ]
end

.descriptionObject



16
17
18
# File 'lib/fastlane/plugin/transporter/actions/install_transporter_action.rb', line 16

def self.description
  "Install Apple iTMSTransporter"
end

.detailsObject



28
29
# File 'lib/fastlane/plugin/transporter/actions/install_transporter_action.rb', line 28

def self.details
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/fastlane/plugin/transporter/actions/install_transporter_action.rb', line 51

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

.return_valueObject



24
25
26
# File 'lib/fastlane/plugin/transporter/actions/install_transporter_action.rb', line 24

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
14
# File 'lib/fastlane/plugin/transporter/actions/install_transporter_action.rb', line 8

def self.run(params)
  Transporter.install(
    source: params[:source],
    install_path: params[:install_path],
    overwrite: params[:overwrite]
  )
end