class Fastlane::Actions::ParsePropertiesFileAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/properties/actions/parse_properties_file.rb, line 16
def self.authors
  ["Pavlo Pakholka"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/properties/actions/parse_properties_file.rb, line 29
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :path,
      env_name: "PROPERIES_READ_HASH_PATH",
      description: "Path to .properies file you want to read",
      type: String,
      optional: false,
      verify_block: proc do |value|
        UI.user_error!("Couldn't find .properties file at path '#{value}'") unless File.exist?(File.expand_path(value))
      end)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/properties/actions/parse_properties_file.rb, line 12
def self.description
  "Load .properties file and returns it as a ruby hash-map."
end
details() click to toggle source
# File lib/fastlane/plugin/properties/actions/parse_properties_file.rb, line 24
def self.details
  # Optional:
  ""
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/properties/actions/parse_properties_file.rb, line 42
def self.is_supported?(platform)
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
  # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
  #
  # [:ios, :mac, :android].include?(platform)
  true
end
return_value() click to toggle source
# File lib/fastlane/plugin/properties/actions/parse_properties_file.rb, line 20
def self.return_value
  'Content of properties file.'
end
run(params) click to toggle source
# File lib/fastlane/plugin/properties/actions/parse_properties_file.rb, line 7
def self.run(params)
  content = JavaProperties.load(params[:path])
  return content
end