Sha256: 8f3beae165bde808024776840b2e5cc803dfe1420b7709a220ef50cfb977a475

Contents?: true

Size: 1.63 KB

Versions: 232

Compression:

Stored size: 1.63 KB

Contents

require 'shellwords'

module Fastlane
  module Actions
    class InstallProvisioningProfileAction < Action
      def self.run(params)
        absolute_path = File.expand_path(params[:path])
        FastlaneCore::ProvisioningProfile.install(absolute_path)
      end

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

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

      def self.authors
        ["SofteqDG"]
      end

      def self.category
        :code_signing
      end

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

      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

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

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

Version data entries

232 entries across 232 versions & 2 rubygems

Version Path
fastlane-2.132.0.beta.20190923200017 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190922200014 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190921200021 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190920200012 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190919200100 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190918200023 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190917200011 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190916200055 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190915200038 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190914200034 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190913200058 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.132.0.beta.20190912200052 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.131.0 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.131.0.beta.20190911200010 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.131.0.beta.20190910200104 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.131.0.beta.20190909200058 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.131.0.beta.20190908200041 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.131.0.beta.20190907200030 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.131.0.beta.20190906200026 fastlane/lib/fastlane/actions/install_provisioning_profile.rb
fastlane-2.131.0.beta.20190905200113 fastlane/lib/fastlane/actions/install_provisioning_profile.rb