Method: Dply::Yum.install

Defined in:
lib/dply/yum.rb

.install(pkgs) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/dply/yum.rb', line 7

def self.install(pkgs)
  return if installed?(pkgs)
  cmd install_command(pkgs)
  not_installed = not_installed(pkgs)
  if not_installed.size != 0
    error "following pkgs not installed: #{not_installed.join(" ")}"
  end
end