Class: Stool::Command::LibPool

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

Direct Known Subclasses

Add, Clone, List

Defined Under Namespace

Classes: Add, Clone, List

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Stool::Command

#checkConfigFile, options, #pp, #run

Constructor Details

#initialize(argv) ⇒ LibPool

pool信息 attr_accessor :pInfo



20
21
22
# File 'lib/stool/Command/LibPool.rb', line 20

def initialize(argv)
  super
end

Class Method Details

.existLocalAndClone(libs) ⇒ Object

检测、git clone



40
41
42
# File 'lib/stool/Command/LibPool.rb', line 40

def self.existLocalAndClone(libs)

end

.pools_from_configObject

配置文件中读取



25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/stool/Command/LibPool.rb', line 25

def self.pools_from_config
  arr = @@config.pools
  arr.each do |obj|
    # puts '**** obj===' + "#{obj}"
    if obj.respond_to?('path')
      unless File.exist?(obj.path)
        puts "warning__> #{obj.path} not exist"
        arr.delete(obj)
      end
    end
  end
  arr
end