class Fastlane::Actions::IxguardAction

Public Class Methods

authors() click to toggle source
# File lib/fastlane/plugin/ixguard/actions/ixguard_action.rb, line 24
def self.authors
  ["Evgeniy Kubyshin"]
end
available_options() click to toggle source
# File lib/fastlane/plugin/ixguard/actions/ixguard_action.rb, line 37
def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :config,
                            env_name: "IXGUARD_CONFIG_OPTION",
                         description: "The iXGuard Config file",
                            optional: false,
                                type: String),
    FastlaneCore::ConfigItem.new(key: :output,
      env_name: "IXGUARD_OUTPUT_OPTION",
      description: "The output file",
        optional: false,
        type: String),
    FastlaneCore::ConfigItem.new(key: :ipa,
      env_name: "IXGUARD_IPA_OPTION",
      description: "The ipa input file",
      optional: false,
      type: String)
  ]
end
description() click to toggle source
# File lib/fastlane/plugin/ixguard/actions/ixguard_action.rb, line 20
def self.description
  "iXGuard build plugin"
end
details() click to toggle source
# File lib/fastlane/plugin/ixguard/actions/ixguard_action.rb, line 32
def self.details
  # Optional:
  "iXGuard build plugin"
end
is_supported?(platform) click to toggle source
# File lib/fastlane/plugin/ixguard/actions/ixguard_action.rb, line 57
def self.is_supported?(platform)
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
  # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
  #
  # [:ios, :mac, :android].include?(platform)
  true
end
return_value() click to toggle source
# File lib/fastlane/plugin/ixguard/actions/ixguard_action.rb, line 28
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/ixguard/actions/ixguard_action.rb, line 4
def self.run(params)
  require 'shellwords'

  begin
    config_file = params[:config].shellescape
    output_file = params[:output].shellescape
    ipa_file = params[:ipa].shellescape
    command = "ixguard -c=#{config_file} -o=#{output_file} #{ipa_file}"
    FastlaneCore::CommandExecutor.execute(command: 'env -i HOME="$HOME" TERM="$TERM" LC_CTYPE="${LC_ALL:-${LC_CTYPE:-$LANG}}" PATH="$PATH" USER="$USER" ' + command,
      print_all: true,
      print_command: false)
  rescue => ex
    UI.user_error!("Error create ixguard file: #{ex}")
  end
end