module PantographCore

require_relative 'app_identifier_guesser'

require_relative 'app_identifier_guesser'

Constants

Boolean
ROOT

Public Class Methods

pantograph_user_dir() click to toggle source

A directory that's being used to user-wide pantograph configs This directory is also used for the bundled pantograph

# File pantograph_core/lib/pantograph_core/module.rb, line 24
def self.pantograph_user_dir
  path = File.expand_path(File.join(Dir.home, ".pantograph"))
  FileUtils.mkdir_p(path) unless File.directory?(path)
  return path
end
reset_session() click to toggle source
# File pantograph_core/lib/pantograph_core/module.rb, line 18
def self.reset_session
  @session = nil
end
session() click to toggle source

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: PANTOGRAPH_OPT_OUT_USAGE Specifically, in AnalyticsSession.finalize_session Learn more at urbanquakers.github.io/pantograph/#metrics

# File pantograph_core/lib/pantograph_core/module.rb, line 14
def self.session
  @session ||= AnalyticsSession.new
end