Class: OS::Debian
Direct Known Subclasses
Ubuntu
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from OS::Base
Instance Method Details
#command ⇒ Object
23
24
25
|
# File 'lib/prebundle/os.rb', line 23
def command
"apt install -y #{packages.join(' ')}"
end
|
#packages ⇒ Object
14
15
16
17
18
19
20
21
22
|
# File 'lib/prebundle/os.rb', line 14
def packages
@gems.map do |gem|
case gem
when 'curses'; "libncursesw5-dev"
when 'mysql2'; "libmysqlclient-dev"
when 'pg'; 'libpq-dev'
end
end.flatten.uniq
end
|