Class: Fastlane::Actions::ImportProvisioningAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::ImportProvisioningAction
- Defined in:
- lib/fastlane/plugin/polidea/actions/import_provisioning.rb
Class Method Summary collapse
- .author ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .run(config) ⇒ Object
Class Method Details
.author ⇒ Object
34 35 36 |
# File 'lib/fastlane/plugin/polidea/actions/import_provisioning.rb', line 34 def self. "Piotrek Dubiel" end |
.available_options ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/fastlane/plugin/polidea/actions/import_provisioning.rb', line 21 def self. [ FastlaneCore::ConfigItem.new(key: :path, env_name: "", description: "Directory containing provisioning profiles", default_value: "signing") ] end |
.description ⇒ Object
30 31 32 |
# File 'lib/fastlane/plugin/polidea/actions/import_provisioning.rb', line 30 def self.description "Import provisioning profiles from directory (`signing` is default)" end |
.is_supported?(platform) ⇒ Boolean
38 39 40 |
# File 'lib/fastlane/plugin/polidea/actions/import_provisioning.rb', line 38 def self.is_supported?(platform) platform == :ios end |
.run(config) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fastlane/plugin/polidea/actions/import_provisioning.rb', line 4 def self.run(config) Fastlane::Polidea.session.action_launched("import_provisioning", config) path = config[:path] profiles = Dir.glob File.join(path, "*.mobileprovision") # Install the provisioning profiles profiles.each do |profile| FastlaneCore::ProvisioningProfile.install(profile) end UI.success "Successfully imported:\n#{profiles.join("\n")}" Fastlane::Polidea.session.action_completed("import_provisioning") true end |