Class: Fastlane::Actions::SighAction

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

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, details, output, sh, step_text

Class Method Details

.authorObject



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

def self.author
  "KrauseFx"
end

.available_optionsObject



39
40
41
42
43
# File 'lib/fastlane/actions/sigh.rb', line 39

def self.available_options
  require 'sigh'
  require 'sigh/options'
  Sigh::Options.available_options
end

.descriptionObject



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

def self.description
  "Generates a provisioning profile. Stores the profile in the current folder"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/fastlane/actions/sigh.rb', line 45

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

.run(values) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/fastlane/actions/sigh.rb', line 9

def self.run(values)
  require 'sigh'
  require 'sigh/options'
  require 'sigh/manager'
  require 'credentials_manager/appfile_config'

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

    Sigh.config = values # we alread have the finished config
    
    path = Sigh::Manager.start

    Actions.lane_context[SharedValues::SIGH_PROFILE_PATH] = path # absolute path
    Actions.lane_context[SharedValues::SIGH_UDID] = ENV["SIGH_UDID"] if ENV["SIGH_UDID"] # The UDID of the new profile

    return ENV["SIGH_UDID"] # return the UDID of the new profile
  ensure
    FastlaneCore::UpdateChecker.show_update_status('sigh', Sigh::VERSION)
  end
end