Module: Dply::Yum
- Extended by:
- Helper
- Defined in:
- lib/dply/yum.rb
Class Method Summary
collapse
Methods included from Helper
cmd, error, git, logger, sh, symlink
Class Method Details
.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
|
.installed?(pkgs) ⇒ Boolean
16
17
18
|
# File 'lib/dply/yum.rb', line 16
def self.installed?(pkgs)
not_installed(pkgs).size == 0
end
|