Class: Stool::Command::LibPool::List

Inherits:
Stool::Command::LibPool show all
Defined in:
lib/stool/Command/LibPool/List.rb

Instance Method Summary collapse

Methods inherited from Stool::Command::LibPool

existLocalAndClone, pools_from_config

Methods inherited from Stool::Command

#checkConfigFile, options, #pp

Constructor Details

#initialize(argv) ⇒ List

Returns a new instance of List.



14
15
16
# File 'lib/stool/Command/LibPool/List.rb', line 14

def initialize(argv)
  super
end

Instance Method Details

#runObject

查看当前的pool list



19
20
21
22
23
24
25
# File 'lib/stool/Command/LibPool/List.rb', line 19

def run
  pp('')
  pp('**Pool list')
  List::pools_from_config.map do |pInfo|
    pInfo.info_tos
  end
end