Class: Depend::PackageProvider::Apt
- Inherits:
-
Object
- Object
- Depend::PackageProvider::Apt
show all
- Includes:
- Common
- Defined in:
- lib/depend/package_provider/apt.rb
Instance Method Summary
collapse
Methods included from Common
#display_name, #exec_install, #exist?, #install
Instance Method Details
#command ⇒ Object
6
7
8
|
# File 'lib/depend/package_provider/apt.rb', line 6
def command
'apt-get'
end
|
#installed?(dep) ⇒ Boolean
10
11
12
|
# File 'lib/depend/package_provider/apt.rb', line 10
def installed?(dep)
!!system("dpkg -s #{dep}")
end
|