Sha256: 981f70a1ccb87b8b900decab24924f4a8a346964dbf1a56598c5d63dbcb7f071
Contents?: true
Size: 466 Bytes
Versions: 59
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true module AppMap module Service class Guesser POSSIBLE_PATHS = %w[app/controllers app/models 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
59 entries across 59 versions & 1 rubygems