Class: Fastlane::Actions::GetProvisioningProfileAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, authors, deprecated_notes, lane_context, method_missing, other_action, return_type, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.author ⇒ Object
51
52
53
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.rb', line 51
def self.author
"KrauseFx"
end
|
.available_options ⇒ Object
74
75
76
77
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.rb', line 74
def self.available_options
require 'sigh'
Sigh::Options.available_options
end
|
.category ⇒ Object
95
96
97
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.rb', line 95
def self.category
:code_signing
end
|
.description ⇒ Object
47
48
49
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.rb', line 47
def self.description
"Generates a provisioning profile, saving it in the current folder (via _sigh_)"
end
|
.details ⇒ Object
70
71
72
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.rb', line 70
def self.details
"**Note**: It is recommended to use [match](https://docs.fastlane.tools/actions/match/) according to the [codesigning.guide](https://codesigning.guide) for generating and maintaining your provisioning profiles. Use _sigh_ directly only if you want full control over what's going on and know more about codesigning."
end
|
.example_code ⇒ Object
83
84
85
86
87
88
89
90
91
92
93
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.rb', line 83
def self.example_code
[
'get_provisioning_profile',
'sigh # alias for "get_provisioning_profile"',
'get_provisioning_profile(
adhoc: true,
force: true,
filename: "myFile.mobileprovision"
)'
]
end
|
.is_supported?(platform) ⇒ Boolean
79
80
81
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.rb', line 79
def self.is_supported?(platform)
[:ios, :mac].include?(platform)
end
|
.output ⇒ Object
rubocop:disable Lint/MissingKeysOnSharedArea
56
57
58
59
60
61
62
63
64
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.rb', line 56
def self.output
[
['SIGH_PROFILE_PATH', 'A path in which certificates, key and profile are exported'],
['SIGH_PROFILE_PATHS', 'Paths in which certificates, key and profile are exported'],
['SIGH_UUID', 'UUID (Universally Unique IDentifier) of a provisioning profile'],
['SIGH_NAME', 'The name of the profile'],
['SIGH_PROFILE_TYPE', 'The profile type, can be appstore, adhoc, development, enterprise']
]
end
|
.return_value ⇒ Object
66
67
68
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.rb', line 66
def self.return_value
"The UUID of the profile sigh just fetched/generated"
end
|
.set_profile_type(values, enterprise) ⇒ Object
35
36
37
38
39
40
41
42
43
44
45
|
# File 'fastlane/lib/fastlane/actions/get_provisioning_profile.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 = "developer-id" if values[:developer_id]
profile_type = "enterprise" if enterprise
UI.message("Setting Provisioning Profile type to '#{profile_type}'")
Actions.lane_context[SharedValues::SIGH_PROFILE_TYPE] = profile_type
end
|