Class: Yoda::Store::Objects::Library::Gem::Connected
Instance Attribute Summary collapse
Instance Method Summary
collapse
delegate_to_object
#registry, #registry_exists?
Constructor Details
#initialize(object, project:) ⇒ Connected
Returns a new instance of Connected.
129
130
131
132
|
# File 'lib/yoda/store/objects/library/gem.rb', line 129
def initialize(object, project:)
@object = object
@project = project
end
|
Instance Attribute Details
#object ⇒ Gem
122
123
124
|
# File 'lib/yoda/store/objects/library/gem.rb', line 122
def object
@object
end
|
125
126
127
|
# File 'lib/yoda/store/objects/library/gem.rb', line 125
def project
@project
end
|
Instance Method Details
#create_patch ⇒ Object
144
145
146
|
# File 'lib/yoda/store/objects/library/gem.rb', line 144
def create_patch
Actions::ImportGem.run(self)
end
|
#registry_path ⇒ Object
135
136
137
138
139
140
141
142
|
# File 'lib/yoda/store/objects/library/gem.rb', line 135
def registry_path
if managed_by_rubygems?
project.library_registry_path(name: name, version: version)
else
nil
end
end
|