Class: Fastlane::Actions::InstallProvisioningProfileAction

Inherits:
Fastlane::Action show all
Defined in:
fastlane/lib/fastlane/actions/install_provisioning_profile.rb

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, deprecated_notes, lane_context, method_missing, other_action, output, return_type, sample_return_value, shell_out_should_use_bundle_exec?, step_text

Class Method Details

.authorsObject


19
20
21
# File 'fastlane/lib/fastlane/actions/install_provisioning_profile.rb', line 19

def self.authors
  ["SofteqDG"]
end

.available_optionsObject


31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'fastlane/lib/fastlane/actions/install_provisioning_profile.rb', line 31

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :path,
                            env_name: "FL_INSTALL_PROVISIONING_PROFILE_PATH",
                         description: "Path to provisioning profile",
                            optional: false,
                                type: String,
                        verify_block: proc do |value|
                          absolute_path = File.expand_path(value)
                          unless File.exist?(absolute_path)
                            UI.user_error!("Could not find provisioning profile at path: '#{value}'")
                          end
                        end)
  ]
end

.categoryObject


23
24
25
# File 'fastlane/lib/fastlane/actions/install_provisioning_profile.rb', line 23

def self.category
  :code_signing
end

.descriptionObject


11
12
13
# File 'fastlane/lib/fastlane/actions/install_provisioning_profile.rb', line 11

def self.description
  "Install provisioning profile from path"
end

.detailsObject


15
16
17
# File 'fastlane/lib/fastlane/actions/install_provisioning_profile.rb', line 15

def self.details
  "Install provisioning profile from path for current user"
end

.example_codeObject


51
52
53
54
55
# File 'fastlane/lib/fastlane/actions/install_provisioning_profile.rb', line 51

def self.example_code
  [
    'install_provisioning_profile(path: "profiles/profile.mobileprovision")'
  ]
end

.is_supported?(platform) ⇒ Boolean

Returns:


27
28
29
# File 'fastlane/lib/fastlane/actions/install_provisioning_profile.rb', line 27

def self.is_supported?(platform)
  [:ios, :mac].include?(platform)
end

.return_valueObject


47
48
49
# File 'fastlane/lib/fastlane/actions/install_provisioning_profile.rb', line 47

def self.return_value
  "The absolute path to the installed provisioning profile"
end

.run(params) ⇒ Object


6
7
8
9
# File 'fastlane/lib/fastlane/actions/install_provisioning_profile.rb', line 6

def self.run(params)
  absolute_path = File.expand_path(params[:path])
  FastlaneCore::ProvisioningProfile.install(absolute_path)
end