Sha256: 6768c06cb8cc8d281045476894a869d3e2962f40a5436925bab6880824a496d4

Contents?: true

Size: 1.49 KB

Versions: 9

Compression:

Stored size: 1.49 KB

Contents

require 'fastlane/actions/actions_helper'

module Fastlane
  class Action
    def self.run(params)
      
    end

    # Implement in subclasses
    def self.description
      "No description provided".red
    end

    def self.details
      nil # this is your change to provide a more detailed description of this action
    end

    def self.available_options
      # Return an array of 2-3 element arrays, like:
      # [
      #   ['app_identifier', 'This value is responsible for X', 'ENVIRONMENT_VARIABLE'],
      #   ['app_identifier', 'This value is responsible for X']
      # ]
      # Take a look at sigh.rb if you're using the config manager of fastlane
      nil
    end

    def self.output
      # Return the keys you provide on the shared area
      # [
      #   ['IPA_OUTPUT_PATH', 'The path to the newly generated ipa file']
      # ]
      nil
    end

    def self.author
      "KrauseFx"
    end

    def self.is_supported?(platform)
      # you can do things like
      #  true
      # 
      #  platform == :ios
      # 
      #  [:ios, :android].include?platform
      # 
      raise "Implementing `is_supported?` for all actions is mandatory. Please update #{self}".red
    end



    # to allow a simple `sh` in the custom actions
    def self.sh(command)
      Fastlane::Actions.sh(command)
    end

    # instead of "AddGitAction", this will return "add_git" to print it to the user
    def self.action_name
      self.name.split('::').last.gsub('Action', '').fastlane_underscore
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fastlane-1.4.0 lib/fastlane/action.rb
fastlane-1.3.2 lib/fastlane/action.rb
fastlane-1.3.1 lib/fastlane/action.rb
fastlane-1.3.0 lib/fastlane/action.rb
fastlane-1.2.3 lib/fastlane/action.rb
fastlane-1.2.2 lib/fastlane/action.rb
fastlane-1.2.1 lib/fastlane/action.rb
fastlane-1.2.0 lib/fastlane/action.rb
fastlane-1.1.0 lib/fastlane/action.rb