class Fastlane::Actions::PhraseappAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/phraseapp/actions/phraseapp_action.rb, line 16
def self.authors
  ["Issarapong Poesua"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/phraseapp/actions/phraseapp_action.rb, line 29
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :command,
                            env_name: "PHRASEAPP_COMMAND",
                         description: "Arguments will be passed to Phraseapp CLI",
                            optional: false,
                                type: String)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/phraseapp/actions/phraseapp_action.rb, line 12
def self.description
  "a phraseapp-cli tool wrapper"
end
details() click to toggle source
# File lib/fastlane/plugin/phraseapp/actions/phraseapp_action.rb, line 24
def self.details
  # Optional:
  "a phraseapp-cli tool wrapper"
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/phraseapp/actions/phraseapp_action.rb, line 39
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/phraseapp/actions/phraseapp_action.rb, line 20
def self.return_value
  # If your method provides a return value, you can describe here what it does
end
run(params) click to toggle source
# File lib/fastlane/plugin/phraseapp/actions/phraseapp_action.rb, line 7
def self.run(params)
  raise 'phraseapp-cli is not installed 💣' unless Helper::PhraseappHelper.cli_exist?
  Helper::PhraseappHelper.execute(command: params[:command])
end