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, author, details, output, sh

Class Method Details

.available_optionsObject



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

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

.descriptionObject



29
30
31
# File 'lib/fastlane/actions/sigh.rb', line 29

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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


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

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
# 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
  ensure
    FastlaneCore::UpdateChecker.show_update_status('sigh', Sigh::VERSION)
  end
end