Sha256: d2b9660e64b8e2396e7b64f42b7611bf5942bf06c1f88f201becdb578fad9dd3
Contents?: true
Size: 444 Bytes
Versions: 47
Compression:
Stored size: 444 Bytes
Contents
# frozen_string_literal: true module AppMap module Service class Guesser POSSIBLE_PATHS = %w[app lib] class << self def guess_name return Pathname.new(`git rev-parse --show-toplevel`.strip).basename.to_s if File.directory?('.git') Dir.pwd.split('/').last end def guess_paths POSSIBLE_PATHS.select { |path| File.directory?(path) } end end end end end
Version data entries
47 entries across 47 versions & 1 rubygems