Class: Teapot::Command::List

Inherits:
Samovar::Command
  • Object
show all
Defined in:
lib/teapot/command.rb

Instance Method Summary collapse

Instance Method Details

#invoke(parent) ⇒ Object



100
101
102
103
104
105
106
# File 'lib/teapot/command.rb', line 100

def invoke(parent)
  if @packages.any?
    only = Set.new(@packages)
  end
  
  parent.controller.list(only)
end