Module: EasyCreds::Project
- Defined in:
- lib/easy_creds/project.rb
Overview
Detects whether the current working directory is a Rails project or a standalone directory, and exposes project-scoped paths (credentials dir, log dir, etc.) to the rest of the gem without coupling to Rails constants.
Defined Under Namespace
Classes: Rails, Standalone
Class Method Summary collapse
-
.detect(cwd = Dir.pwd) ⇒ Object
Returns a Rails or Standalone project object for the given path.