Class: Yoda::Store::Objects::Library::Core::Connected
- Inherits:
-
Object
- Object
- Yoda::Store::Objects::Library::Core::Connected
- Extended by:
- ConnectedDelegation
- Includes:
- PathResolvable, WithRegistry
- Defined in:
- lib/yoda/store/objects/library/core.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
- #create_patch ⇒ Object
-
#initialize(object, project:) ⇒ Connected
constructor
A new instance of Connected.
- #registry_path ⇒ Object
- #require_paths ⇒ Array<String>
Methods included from ConnectedDelegation
Methods included from PathResolvable
#contain_requirable_file?, #find_requirable_file
Methods included from WithRegistry
Constructor Details
#initialize(object, project:) ⇒ Connected
Returns a new instance of Connected.
57 58 59 60 |
# File 'lib/yoda/store/objects/library/core.rb', line 57 def initialize(object, project:) @object = object @project = project end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
53 54 55 |
# File 'lib/yoda/store/objects/library/core.rb', line 53 def object @object end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
53 54 55 |
# File 'lib/yoda/store/objects/library/core.rb', line 53 def project @project end |
Instance Method Details
#create_patch ⇒ Object
62 63 64 |
# File 'lib/yoda/store/objects/library/core.rb', line 62 def create_patch Actions::ImportCoreLibrary.run(self) end |
#registry_path ⇒ Object
Note:
Implementation for WithRegistry#registry_path
67 68 69 |
# File 'lib/yoda/store/objects/library/core.rb', line 67 def registry_path VersionStore.for_current_version.registry_path_for_core end |
#require_paths ⇒ Array<String>
72 73 74 |
# File 'lib/yoda/store/objects/library/core.rb', line 72 def require_paths [] end |