Module: Yoda::Store::Objects::Library::WithRegistry
- Included in:
- Core::Connected, Gem::Connected, Std::Connected
- Defined in:
- lib/yoda/store/objects/library/with_registry.rb
Instance Method Summary collapse
- #registry ⇒ Registry::LibraryRegistry
- #registry_exists? ⇒ Boolean
-
#registry_path ⇒ String?
abstract
Return the path of registry for the library.
Instance Method Details
#registry ⇒ Registry::LibraryRegistry
19 20 21 22 23 |
# File 'lib/yoda/store/objects/library/with_registry.rb', line 19 def registry @registry ||= begin Registry::LibraryRegistry.for_library(self) end end |
#registry_exists? ⇒ Boolean
7 8 9 |
# File 'lib/yoda/store/objects/library/with_registry.rb', line 7 def registry_exists? registry_path && File.exists?(registry_path) end |
#registry_path ⇒ String?
This method is abstract.
Return the path of registry for the library.
14 15 16 |
# File 'lib/yoda/store/objects/library/with_registry.rb', line 14 def registry_path fail NotImplementedError end |