Class: Jmpod::Command

Inherits:
CLAide::Command
  • Object
show all
Defined in:
lib/jmpod/command.rb,
lib/jmpod/command/op.rb,
lib/jmpod/command/init.rb,
lib/jmpod/command/config.rb,
lib/jmpod/command/create.rb,
lib/jmpod/command/analyze.rb,
lib/jmpod/command/init/ci.rb,
lib/jmpod/command/op/gems.rb,
lib/jmpod/command/create/oc.rb,
lib/jmpod/command/init/unit.rb,
lib/jmpod/command/op/xcache.rb,
lib/jmpod/command/config/get.rb,
lib/jmpod/command/config/set.rb,
lib/jmpod/command/op/gitconf.rb,
lib/jmpod/command/create/swift.rb,
lib/jmpod/command/create/third.rb

Direct Known Subclasses

Analyze, Config, Create, Init, Op

Defined Under Namespace

Classes: Analyze, Config, Create, Init, Op

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Command

Returns a new instance of Command.



39
40
41
42
43
44
45
46
# File 'lib/jmpod/command.rb', line 39

def initialize(argv)
  super
  
  unless self.ansi_output?
    Colored2.disable!
    String.send(:define_method, :colorize) { |string, _| string }
  end
end

Class Method Details

.optionsObject



29
30
31
32
33
# File 'lib/jmpod/command.rb', line 29

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

.run(argv) ⇒ Object



35
36
37
# File 'lib/jmpod/command.rb', line 35

def self.run(argv)
  super(argv)
end