Method: Aggkit::Env::Project#root?

Defined in:
lib/aggkit/env.rb

#root?(path) ⇒ Boolean

Returns:

  • (Boolean)


227
228
229
230
231
232
# File 'lib/aggkit/env.rb', line 227

def root?(path)
  return File.realpath(File.expand_path(path)) if File.directory?("#{path}/.git") ||
    File.exist?("#{path}/base-service.yml") ||
    File.exist?("#{path}/common-services.yml") ||
    File.directory?("#{path}/envs")
end