Class: LoomExt::CoreMods::Package::GemAdapter
- Inherits:
-
PkgAdapter
- Object
- PkgAdapter
- LoomExt::CoreMods::Package::GemAdapter
- Defined in:
- lib/loomext/coremods/package/adapter.rb
Instance Attribute Summary
Attributes inherited from PkgAdapter
Instance Method Summary collapse
Methods inherited from PkgAdapter
#ensure_installed, #initialize, #uninstall, #update_cache, #upgrade
Constructor Details
This class inherits a constructor from LoomExt::CoreMods::Package::PkgAdapter
Instance Method Details
#install(pkg_name) ⇒ Object
42 43 44 |
# File 'lib/loomext/coremods/package/adapter.rb', line 42 def install(pkg_name) loom.x :gem, :install, pkg_name end |
#installed?(pkg_name) ⇒ Boolean
38 39 40 |
# File 'lib/loomext/coremods/package/adapter.rb', line 38 def installed?(pkg_name) loom.test "ruby -r#{pkg_name} -e exit" end |