Class: Yoda::Store::Objects::Library::Core::Connected
- Inherits:
-
Object
- Object
- Yoda::Store::Objects::Library::Core::Connected
- Extended by:
- ConnectedDelegation
- Includes:
- 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
Methods included from ConnectedDelegation
Methods included from WithRegistry
Constructor Details
#initialize(object, project:) ⇒ Connected
Returns a new instance of Connected.
54 55 56 57 |
# File 'lib/yoda/store/objects/library/core.rb', line 54 def initialize(object, project:) @object = object @project = project end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
50 51 52 |
# File 'lib/yoda/store/objects/library/core.rb', line 50 def object @object end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
50 51 52 |
# File 'lib/yoda/store/objects/library/core.rb', line 50 def project @project end |
Instance Method Details
#create_patch ⇒ Object
59 60 61 |
# File 'lib/yoda/store/objects/library/core.rb', line 59 def create_patch Actions::ImportCoreLibrary.run(self) end |
#registry_path ⇒ Object
Note:
Implementation for WithRegistry#registry_path
64 65 66 |
# File 'lib/yoda/store/objects/library/core.rb', line 64 def registry_path VersionStore.for_current_version.registry_path_for_core end |