Class: Fastlane::Helper::InstallProvisioningProfileHelper
- Inherits:
-
Object
- Object
- Fastlane::Helper::InstallProvisioningProfileHelper
- Defined in:
- lib/fastlane/plugin/install_provisioning_profile/helper/install_provisioning_profile_helper.rb
Class Method Summary collapse
- .install_profile_from_path(path) ⇒ Object
- .install_profiles_from_dir(profiles_dir) ⇒ Object
- .install_profiles_from_list(profiles_list) ⇒ Object
- .show_message ⇒ Object
Class Method Details
.install_profile_from_path(path) ⇒ Object
12 13 14 15 |
# File 'lib/fastlane/plugin/install_provisioning_profile/helper/install_provisioning_profile_helper.rb', line 12 def self.install_profile_from_path(path) Helper::InstallProvisioningProfileHelper.ensure_profiles_dir_created() Helper::InstallProvisioningProfileHelper.install_profile(path) end |
.install_profiles_from_dir(profiles_dir) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/fastlane/plugin/install_provisioning_profile/helper/install_provisioning_profile_helper.rb', line 31 def self.install_profiles_from_dir(profiles_dir) filtered_profiles = Dir.entries(profiles_dir).select do |profile_path| profile_extension = File.extname(profile_path) profile_extension == PROFILE_EXTENSION end raise "There are no #{PROFILE_EXTENSION} files in directory #{profiles_dir}" if filtered_profiles.count == 0 Helper::InstallProvisioningProfileHelper.ensure_profiles_dir_created() filtered_profiles.each { |profile_path| Helper::InstallProvisioningProfileHelper.install_profile(File.join(profiles_dir, profile_path)) } end |
.install_profiles_from_list(profiles_list) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/fastlane/plugin/install_provisioning_profile/helper/install_provisioning_profile_helper.rb', line 17 def self.install_profiles_from_list(profiles_list) filtered_profiles = profiles_list.select do |profile_path| profile_extension = File.extname(profile_path) profile_extension == PROFILE_EXTENSION end raise "There are no #{PROFILE_EXTENSION} files in list #{profiles_list}" if filtered_profiles.count == 0 Helper::InstallProvisioningProfileHelper.ensure_profiles_dir_created() filtered_profiles.each { |profile_path| Helper::InstallProvisioningProfileHelper.install_profile(profile_path) } end |
.show_message ⇒ Object
8 9 10 |
# File 'lib/fastlane/plugin/install_provisioning_profile/helper/install_provisioning_profile_helper.rb', line 8 def self. UI.("Hello from the install_provisioning_profile plugin helper!") end |