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

Inherits:
Object
  • Object
show all
Extended by:
ConnectedDelegation
Includes:
PathResolvable, 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 PathResolvable

#contain_requirable_file?, #find_requirable_file

Methods included from WithRegistry

#registry, #registry_exists?

Constructor Details

#initialize(object, project:) ⇒ Connected

Returns a new instance of Connected.

Parameters:



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

#objectObject (readonly)

Returns the value of attribute object.



53
54
55
# File 'lib/yoda/store/objects/library/core.rb', line 53

def object
  @object
end

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



62
63
64
# File 'lib/yoda/store/objects/library/core.rb', line 62

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

#registry_pathObject

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_pathsArray<String>

Returns:

  • (Array<String>)


72
73
74
# File 'lib/yoda/store/objects/library/core.rb', line 72

def require_paths
  []
end