Class: Fastlane::Actions::SighAction
Class Method Summary
collapse
action_name, authors, details, output, sh, step_text
Class Method Details
.author ⇒ Object
50
51
52
|
# File 'lib/fastlane/actions/sigh.rb', line 50
def self.author
"KrauseFx"
end
|
.available_options ⇒ Object
58
59
60
61
|
# File 'lib/fastlane/actions/sigh.rb', line 58
def self.available_options
require 'sigh'
Sigh::Options.available_options
end
|
.description ⇒ Object
46
47
48
|
# File 'lib/fastlane/actions/sigh.rb', line 46
def self.description
"Generates a provisioning profile. Stores the profile in the current folder"
end
|
.is_supported?(platform) ⇒ Boolean
63
64
65
|
# File 'lib/fastlane/actions/sigh.rb', line 63
def self.is_supported?(platform)
platform == :ios
end
|
.return_value ⇒ Object
54
55
56
|
# File 'lib/fastlane/actions/sigh.rb', line 54
def self.return_value
"The UDID of the profile sigh just fetched/generated"
end
|
.run(values) ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/fastlane/actions/sigh.rb', line 11
def self.run(values)
require 'sigh'
require 'credentials_manager/appfile_config'
begin
FastlaneCore::UpdateChecker.start_looking_for_update('sigh') unless Helper.is_test?
Sigh.config = values
path = Sigh::Manager.start
Actions.lane_context[SharedValues::SIGH_PROFILE_PATH] = path
Actions.lane_context[SharedValues::SIGH_PROFILE_PATHS] ||= []
Actions.lane_context[SharedValues::SIGH_PROFILE_PATHS] << path
Actions.lane_context[SharedValues::SIGH_UDID] = ENV["SIGH_UDID"] if ENV["SIGH_UDID"]
set_profile_type(values, ENV["SIGH_PROFILE_ENTERPRISE"])
return ENV["SIGH_UDID"]
ensure
FastlaneCore::UpdateChecker.show_update_status('sigh', Sigh::VERSION)
end
end
|
.set_profile_type(values, enterprise) ⇒ Object
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/fastlane/actions/sigh.rb', line 35
def self.set_profile_type(values, enterprise)
profile_type = "app-store"
profile_type = "ad-hoc" if values[:adhoc]
profile_type = "development" if values[:development]
profile_type = "enterprise" if enterprise
Helper.log.info "Setting Provisioning Profile type to '#{profile_type}'"
Actions.lane_context[SharedValues::SIGH_PROFILE_TYPE] = profile_type
end
|