Class: Dockly::ListCommand
- Inherits:
-
AbstractCommand
- Object
- Clamp::Command
- AbstractCommand
- Dockly::ListCommand
- Defined in:
- lib/dockly/cli.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/dockly/cli.rb', line 55 def execute super dockers = Dockly.dockers.dup debs = Dockly.debs puts "Debs" unless debs.empty? debs.each_with_index do |(name, package), index| puts "#{index + 1}. #{name}" if package.docker dockers.delete(package.docker.name) puts " - Docker: #{package.docker.name}" end end puts "Dockers" unless dockers.empty? dockers.each_with_index do |(name, docker), index| puts "#{index + 1}. #{name}" end end |