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/Util.rb,
lib/stool/Command/repo.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.
31 32 33 34 |
# File 'lib/stool/Command.rb', line 31 def initialize(argv) checkConfigFile super end |
Class Method Details
.options ⇒ Object
25 26 27 28 29 |
# File 'lib/stool/Command.rb', line 25 def self. [ ['--silent', 'Show nothing'], ].concat(super) end |
Instance Method Details
#checkConfigFile ⇒ Object
检测系统Config文件
56 57 58 |
# File 'lib/stool/Command.rb', line 56 def checkConfigFile end |
#pp(*args) ⇒ Object
49 50 51 52 53 |
# File 'lib/stool/Command.rb', line 49 def pp(*args) if args.inspect[1] puts args[0] end end |
#run ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/stool/Command.rb', line 36 def run puts 'it works!!' cc = Config::loadConfig cc.pools.map do |x| puts x.path puts x.name end end |