class Fastlane::Actions::InstallProfilesAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/provisioning/actions/install_profiles_action.rb, line 15
def self.authors
  ["paweljankowski"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/provisioning/actions/install_profiles_action.rb, line 23
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :path,
                            env_name: "PROVISIONING_PROFILES_PATH",
                         description: "Path to directory with provisioning profiles",
                            optional: false,
                                type: String)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/provisioning/actions/install_profiles_action.rb, line 11
def self.description
  "Install profiles from specified directory"
end
details() click to toggle source
# File lib/fastlane/plugin/provisioning/actions/install_profiles_action.rb, line 19
def self.details
  "Installing provisionig profiles on the local machine (eg. CI server) from the specified directory."
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/provisioning/actions/install_profiles_action.rb, line 33
def self.is_supported?(platform)
  [:ios, :mac].include?(platform)
end
run(params) click to toggle source
# File lib/fastlane/plugin/provisioning/actions/install_profiles_action.rb, line 4
def self.run(params)
  profiles_dir = Dir[params[:path] + "/*.mobileprovision"]
  profiles_dir.each do |profile_path|
    Helper::InstallProfilesHelper.install_profile(profile_path)
  end
end