Class: Depend::PackageProvider::Apt

Inherits:
Object
  • Object
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

#commandObject



6
7
8
# File 'lib/depend/package_provider/apt.rb', line 6

def command
  'apt-get'
end

#installed?(dep) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/depend/package_provider/apt.rb', line 10

def installed?(dep)
  !!system("dpkg -s #{dep}")
end