Class: Stool::Command

Inherits:
CLAide::Command
  • Object
show all
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

Direct Known Subclasses

Lib, LibPool, Repo, Util, WorkSpace

Defined Under Namespace

Classes: Lib, LibPool, Repo, Util, WorkSpace

Constant Summary collapse

@@config =

配置中心

Config::loadConfig

Class Method Summary collapse

Instance Method Summary collapse

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

.optionsObject



25
26
27
28
29
# File 'lib/stool/Command.rb', line 25

def self.options
  [
    ['--silent', 'Show nothing'],
  ].concat(super)
end

Instance Method Details

#checkConfigFileObject

检测系统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

#runObject



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