Class: Jah::Packages
- Inherits:
-
Object
- Object
- Jah::Packages
- Includes:
- Command
- Defined in:
- lib/jah/commands/packages.rb
Constant Summary
Constants included from Command
Class Method Summary collapse
Methods included from Command
Class Method Details
.install(foo) ⇒ Object
11 12 13 |
# File 'lib/jah/commands/packages.rb', line 11 def install(foo) ActPkg.install(foo) end |
.pkg(*meths) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/jah/commands/packages.rb', line 15 def pkg(*meths) case res = ActPkg.send(*meths) when Array res.map { |i| ">#{i.name} #{i.version}\n" } when String then res end end |