Sha256: 42daf678388a30a622f981fec8ee2f578c67f95320ca950319a0e45237b07519

Contents?: true

Size: 910 Bytes

Versions: 2

Compression:

Stored size: 910 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
      SIGH_PROFILE_PATH = :SIGH_PROFILE_PATH
      SIGH_UDID = :SIGH_UDID
    end

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

        values = params.first
        if params.kind_of?Array
          # 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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastlane-0.1.19 lib/fastlane/actions/sigh.rb
fastlane-0.1.18 lib/fastlane/actions/sigh.rb