Class: Yoda::Store::Objects::Library::Core::Connected

Inherits:
Object
  • Object
show all
Extended by:
ConnectedDelegation
Includes:
WithRegistry
Defined in:
lib/yoda/store/objects/library/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConnectedDelegation

delegate_to_object

Methods included from WithRegistry

#registry, #registry_exists?

Constructor Details

#initialize(object, project:) ⇒ Connected

Returns a new instance of Connected.

Parameters:



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

#objectObject (readonly)

Returns the value of attribute object.



50
51
52
# File 'lib/yoda/store/objects/library/core.rb', line 50

def object
  @object
end

#projectObject (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_patchObject



59
60
61
# File 'lib/yoda/store/objects/library/core.rb', line 59

def create_patch
  Actions::ImportCoreLibrary.run(self)
end

#registry_pathObject

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