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
118
119
120
121
|
# File 'lib/yoda/store/objects/library/gem.rb', line 118
def initialize(object, project:)
@object = object
@project = project
end
|
Instance Attribute Details
#object ⇒ Gem
111
112
113
|
# File 'lib/yoda/store/objects/library/gem.rb', line 111
def object
@object
end
|
114
115
116
|
# File 'lib/yoda/store/objects/library/gem.rb', line 114
def project
@project
end
|
Instance Method Details
#create_patch ⇒ Object
133
134
135
|
# File 'lib/yoda/store/objects/library/gem.rb', line 133
def create_patch
Actions::ImportGem.run(self)
end
|
#registry_path ⇒ Object
124
125
126
127
128
129
130
131
|
# File 'lib/yoda/store/objects/library/gem.rb', line 124
def registry_path
if managed_by_rubygems?
project.library_registry_path(name: name, version: version)
else
nil
end
end
|