Class: Evm::Command::List
- Inherits:
-
Object
- Object
- Evm::Command::List
- Defined in:
- lib/evm/command/list.rb
Instance Method Summary collapse
-
#initialize ⇒ List
constructor
A new instance of List.
Constructor Details
#initialize ⇒ List
Returns a new instance of List.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/evm/command/list.rb', line 4 def initialize(*) packages = Evm::Package.all packages.each do |package| if package.current? STDOUT.print '* ' end STDOUT.print package if package.installed? STDOUT.print ' [I]' end STDOUT.puts end end |