Class: Stool::Command::LibPool
- Inherits:
-
Stool::Command
- Object
- CLAide::Command
- Stool::Command
- Stool::Command::LibPool
- 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
Defined Under Namespace
Class Method Summary collapse
-
.existLocalAndClone(libs) ⇒ Object
检测、git clone.
-
.pools_from_config ⇒ Object
配置文件中读取.
Instance Method Summary collapse
-
#initialize(argv) ⇒ LibPool
constructor
pool信息 attr_accessor :pInfo.
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_config ⇒ Object
配置文件中读取
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 |