Sha256: f0282e486d252fe71df98d7be232b6a78f8ea333a3a4b875a15d21421884af46

Contents?: true

Size: 1.05 KB

Versions: 483

Compression:

Stored size: 1.05 KB

Contents

require_relative 'app_identifier_guesser'

module FastlaneCore
  class ActionCompletionStatus
    SUCCESS = 'success'
    FAILED = 'failed' # fastlane crashes unrelated to user_error!
    USER_ERROR = 'user_error' # Anytime a user_error! is triggered
    INTERRUPTED = 'interrupted'
  end

  class ActionCompletionContext
    attr_accessor :p_hash
    attr_accessor :action_name
    attr_accessor :status
    attr_accessor :fastlane_client_language

    def initialize(p_hash: nil, action_name: nil, status: nil, fastlane_client_language: nil)
      @p_hash = p_hash
      @action_name = action_name
      @status = status
      @fastlane_client_language = fastlane_client_language
    end

    def self.context_for_action_name(action_name, fastlane_client_language: :ruby, args: nil, status: nil)
      app_id_guesser = FastlaneCore::AppIdentifierGuesser.new(args: args)
      return self.new(
        action_name: action_name,
        p_hash: app_id_guesser.p_hash,
        status: status,
        fastlane_client_language: fastlane_client_language
      )
    end
  end
end

Version data entries

483 entries across 483 versions & 5 rubygems

Version Path
fastlane-2.120.0 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190409200021 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190408200017 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190407200059 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190406200021 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190405200012 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190404200009 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190403200039 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190402200013 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190401200056 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190331200023 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190330200100 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190329200012 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190328200010 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190327200117 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190326200014 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.120.0.beta.20190325200020 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.119.0 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.119.0.beta.20190324200014 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb
fastlane-2.119.0.beta.20190323200019 fastlane_core/lib/fastlane_core/analytics/action_completion_context.rb