Class: Fastlane::Actions::SighAction

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/actions/sigh.rb

Class Method Summary collapse

Class Method Details

.run(params) ⇒ Object



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

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

  values = params.first

  unless values.kind_of?Hash
    # Old syntax
    values = {}
    params.each do |val|
      values[val] = true
    end
  end

  Sigh.config = FastlaneCore::Configuration.create(Sigh::Options.available_options, (values || {}))
  
  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
end