Class: Fastlane::Actions::EntitlementsSurgeonAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/plist_surgeon/actions/entitlements_surgeon_action.rb

Class Method Summary collapse

Class Method Details

.authorsObject



15
16
17
# File 'lib/fastlane/plugin/plist_surgeon/actions/entitlements_surgeon_action.rb', line 15

def self.authors
  ["Connor Tumbleson"]
end

.available_optionsObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/fastlane/plugin/plist_surgeon/actions/entitlements_surgeon_action.rb', line 19

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :path,
                                 env_name: "PLIST_SURGEON_ENTITLEMENTS_PATH",
                                 description: "The path to the entitlements file",
                                 optional: false,
                                 type: String),
    FastlaneCore::ConfigItem.new(key: :key,
                                 env_name: "PLIST_SURGEON_ENTITLEMENTS_KEY",
                                 description: "The key to update (supports dot notation for nested keys)",
                                 optional: false,
                                 type: String),
    FastlaneCore::ConfigItem.new(key: :value,
                                 env_name: "PLIST_SURGEON_ENTITLEMENTS_VALUE",
                                 description: "The value to set",
                                 optional: false)
  ]
end

.descriptionObject



11
12
13
# File 'lib/fastlane/plugin/plist_surgeon/actions/entitlements_surgeon_action.rb', line 11

def self.description
  "Edit an .entitlements file."
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/fastlane/plugin/plist_surgeon/actions/entitlements_surgeon_action.rb', line 38

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

.run(params) ⇒ Object



7
8
9
# File 'lib/fastlane/plugin/plist_surgeon/actions/entitlements_surgeon_action.rb', line 7

def self.run(params)
  Helper::PlistSurgeonHelper.run(params[:path], params[:key], params[:value])
end