class Avm::Git::LauncherStereotypes::GitSubrepo
def color
def color :light_cyan end
def match?(path)
def match?(path) File.exist?(path.real.subpath('.gitrepo')) && subrepo_url(path.real) != 'none' end
def subrepo_url(path)
def subrepo_url(path) File.read(path.subpath('.gitrepo')).each_line do |l| m = /remote\s*=\s(.+)/.match(l) return m[1] if m end raise ::Avm::Git::Launcher::Error.new(path, '"remote = ... " not found') end