Class: Specinfra::Command::Gentoo::Base::Package
- Inherits:
-
Linux::Base::Package
- Object
- Base
- Base::Package
- Linux::Base::Package
- Specinfra::Command::Gentoo::Base::Package
- Defined in:
- lib/specinfra/command/gentoo/base/package.rb
Class Method Summary collapse
Methods inherited from Base::Package
check_is_installed_by_cpan, check_is_installed_by_gem, check_is_installed_by_npm, check_is_installed_by_pear, check_is_installed_by_pecl, check_is_installed_by_pip, check_is_installed_by_rvm
Methods inherited from Base
Class Method Details
.check_is_installed(package, version = nil) ⇒ Object
3 4 5 |
# File 'lib/specinfra/command/gentoo/base/package.rb', line 3 def check_is_installed(package, version=nil) "eix #{escape(package)} --installed | grep -v \"No matches found.\"" end |