Class: Fastlane::MatchImport::APNSExportFileOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/plugin/match_import/apns_export_file_options.rb

Class Method Summary collapse

Class Method Details

.available_optionsObject



14
15
16
17
18
19
20
21
22
# File 'lib/fastlane/plugin/match_import/apns_export_file_options.rb', line 14

def self.available_options
  all = Fastlane::MatchImport::Options.available_options

  exclude_options.each do |key|
    (i = all.find_index { |item| item.key == key }) && all.delete_at(i)
  end

  return all + custom_options
end

.custom_optionsObject



24
25
26
27
28
29
30
31
# File 'lib/fastlane/plugin/match_import/apns_export_file_options.rb', line 24

def self.custom_options
  destination_path_index = Fastlane::MatchImport::CustomFileOptions.available_options.find_index { |item| item.key == :destination_path }
  destination_path = Fastlane::MatchImport::CustomFileOptions.available_options[destination_path_index] if destination_path_index
  destination_path_array = destination_path.nil? ? [] : [destination_path]

  [
  ] + destination_path_array
end

.exclude_optionsObject



7
8
9
10
11
12
# File 'lib/fastlane/plugin/match_import/apns_export_file_options.rb', line 7

def self.exclude_options
  # [:keychain_name, :keychain_password]
  # Don't know how to exclude unused options and don't get error like:
  # Could not find option 'type' in the list of available options
  []
end