Class: LoomExt::CoreMods::Package::PkgAdapter
- Inherits:
-
Object
- Object
- LoomExt::CoreMods::Package::PkgAdapter
show all
- Defined in:
- lib/loomext/coremods/package/adapter.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
Returns a new instance of PkgAdapter.
8
9
10
|
# File 'lib/loomext/coremods/package/adapter.rb', line 8
def initialize(loom)
@loom = loom
end
|
Instance Attribute Details
#loom ⇒ Object
Returns the value of attribute loom.
6
7
8
|
# File 'lib/loomext/coremods/package/adapter.rb', line 6
def loom
@loom
end
|
Instance Method Details
#ensure_installed(pkg_name) ⇒ Object
12
13
14
|
# File 'lib/loomext/coremods/package/adapter.rb', line 12
def ensure_installed(pkg_name)
install(pkg_name) unless installed?(pkg_name)
end
|
#install(pkg_name) ⇒ Object
20
21
22
|
# File 'lib/loomext/coremods/package/adapter.rb', line 20
def install(pkg_name)
raise 'not implemented'
end
|
#installed?(pkg_name) ⇒ Boolean
16
17
18
|
# File 'lib/loomext/coremods/package/adapter.rb', line 16
def installed?(pkg_name)
raise 'not implemnted'
end
|
#uninstall(pkg_name) ⇒ Object
24
25
26
|
# File 'lib/loomext/coremods/package/adapter.rb', line 24
def uninstall(pkg_name)
raise 'not implemented'
end
|
#update_cache ⇒ Object
28
29
30
|
# File 'lib/loomext/coremods/package/adapter.rb', line 28
def update_cache
raise 'not implemented'
end
|
#upgrade(pkg_name) ⇒ Object
32
33
34
|
# File 'lib/loomext/coremods/package/adapter.rb', line 32
def upgrade(pkg_name)
raise 'not implemented'
end
|