Class: Fastlane::Actions::ScanAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/scan.rb

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, output, return_value, sh, step_text

Class Method Details

.authorObject



26
27
28
# File 'lib/fastlane/actions/scan.rb', line 26

def self.author
  "KrauseFx"
end

.available_optionsObject



30
31
32
33
# File 'lib/fastlane/actions/scan.rb', line 30

def self.available_options
  require 'scan'
  Scan::Options.available_options
end

.descriptionObject



18
19
20
# File 'lib/fastlane/actions/scan.rb', line 18

def self.description
  "Easily test your app using `scan`"
end

.detailsObject



22
23
24
# File 'lib/fastlane/actions/scan.rb', line 22

def self.details
  "More information: https://github.com/fastlane/fastlane/tree/master/scan"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/fastlane/actions/scan.rb', line 35

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

.run(values) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/fastlane/actions/scan.rb', line 4

def self.run(values)
  require 'scan'

  begin
    FastlaneCore::UpdateChecker.start_looking_for_update('scan') unless Helper.is_test?

    Scan::Manager.new.work(values)

    true
  ensure
    FastlaneCore::UpdateChecker.show_update_status('scan', Scan::VERSION)
  end
end