Sha256: e37c3c935e7d2ef0123449f7c8e6d855a790171fc1591c2f03ca9358cc4abf38

Contents?: true

Size: 1009 Bytes

Versions: 9

Compression:

Stored size: 1009 Bytes

Contents

require 'fastlane/boolean'

require_relative 'analytics/analytics_session'

module FastlaneCore
  ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
  Boolean = Fastlane::Boolean

  # Session is used to report usage metrics.
  # If you opt out, we will not send anything.
  # You can confirm this by observing how we use the environment variable: FASTLANE_OPT_OUT_USAGE
  # Specifically, in AnalyticsSession.finalize_session
  # Learn more at https://docs.fastlane.tools/#metrics
  def self.session
    @session ||= AnalyticsSession.new
  end

  def self.reset_session
    @session = nil
  end

  # A directory that's being used to user-wide fastlane configs
  # This directory is also used for the bundled fastlane
  # Since we don't want to access FastlaneCore from spaceship
  # this method is duplicated in spaceship/client.rb
  def self.fastlane_user_dir
    path = File.expand_path(File.join("~", ".fastlane"))
    FileUtils.mkdir_p(path) unless File.directory?(path)
    return path
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fastlane-2.79.0.beta.20180123010002 fastlane_core/lib/fastlane_core/module.rb
fastlane-2.78.0 fastlane_core/lib/fastlane_core/module.rb
fastlane-2.78.0.beta.20180122010003 fastlane_core/lib/fastlane_core/module.rb
fastlane-2.78.0.beta.20180121010003 fastlane_core/lib/fastlane_core/module.rb
fastlane-2.78.0.beta.20180120010003 fastlane_core/lib/fastlane_core/module.rb
fastlane-2.78.0.beta.20180119010003 fastlane_core/lib/fastlane_core/module.rb
fastlane-2.77.1 fastlane_core/lib/fastlane_core/module.rb
fastlane-2.77.0 fastlane_core/lib/fastlane_core/module.rb
fastlane-2.77.0.beta.20180118010004 fastlane_core/lib/fastlane_core/module.rb