Class: EasyCI::Command

Inherits:
CLAide::Command
  • Object
show all
Defined in:
lib/easyci/command.rb,
lib/easyci/command/autobuild.rb,
lib/easyci/command/unitydraw.rb

Direct Known Subclasses

Autobuild, Unitydraw

Defined Under Namespace

Classes: Autobuild, Unitydraw

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Command

Returns a new instance of Command.



17
18
19
20
# File 'lib/easyci/command.rb', line 17

def initialize(argv)
  @verbose = argv.flag?('verbose', false)
  super
end

Class Method Details

.optionsObject



11
12
13
14
15
# File 'lib/easyci/command.rb', line 11

def self.options
  [
    ['--verbose', '显示详细输出'],
  ].concat(super)
end

Instance Method Details

#validate!Object



22
23
24
# File 'lib/easyci/command.rb', line 22

def validate!
  super
end