Class: Stool::Command
- Inherits:
-
CLAide::Command
- Object
- CLAide::Command
- Stool::Command
- Defined in:
- lib/stool/Command.rb,
lib/stool/Command/Lib.rb,
lib/stool/Command/Repo.rb,
lib/stool/Command/Util.rb,
lib/stool/Command/LibPool.rb,
lib/stool/Command/WorkSpace.rb,
lib/stool/Command/LibPool/Add.rb,
lib/stool/Command/LibPool/List.rb,
lib/stool/Command/Util/Jenkins.rb,
lib/stool/Command/LibPool/Clone.rb,
lib/stool/Command/Lib/VersionAdd.rb,
lib/stool/Command/Util/LibsCheck.rb,
lib/stool/Command/WorkSpace/list.rb,
lib/stool/Command/Repo/CacheClean.rb,
lib/stool/Command/WorkSpace/update.rb
Defined Under Namespace
Classes: Lib, LibPool, Repo, Util, WorkSpace
Constant Summary collapse
- @@config =
配置中心
Config::loadConfig
Class Method Summary collapse
Instance Method Summary collapse
-
#checkConfigFile ⇒ Object
检测系统Config文件.
-
#initialize(argv) ⇒ Command
constructor
A new instance of Command.
- #pp(*args) ⇒ Object
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Command
Returns a new instance of Command.
27 28 29 30 |
# File 'lib/stool/Command.rb', line 27 def initialize(argv) checkConfigFile super end |
Class Method Details
.options ⇒ Object
21 22 23 24 25 |
# File 'lib/stool/Command.rb', line 21 def self. [ ['--silent', 'Show nothing'], ].concat(super) end |
Instance Method Details
#checkConfigFile ⇒ Object
检测系统Config文件
52 53 54 |
# File 'lib/stool/Command.rb', line 52 def checkConfigFile end |
#pp(*args) ⇒ Object
45 46 47 48 49 |
# File 'lib/stool/Command.rb', line 45 def pp(*args) if args.inspect[1] puts args[0] end end |
#run ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/stool/Command.rb', line 32 def run puts 'it works!!' cc = Config::loadConfig cc.pools.map do |x| puts x.path puts x.name end end |