Class: UICov::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/uicov/commands/command.rb

Direct Known Subclasses

Gather, Gentpl, Merge, Report

Constant Summary collapse

COMMAND_PREFIX =
"#{$0} #{ARGV[0]}"

Instance Method Summary collapse

Instance Method Details

#do_job(args) ⇒ Object



8
9
10
# File 'lib/uicov/commands/command.rb', line 8

def do_job(args)
  Log.fatal "Method #{__method__} is not overridden in class #{self.class.name}"
end

#usage(err_msg = '', cmd_usage_info = '') ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/uicov/commands/command.rb', line 12

def usage(err_msg='', cmd_usage_info='')
  msg = %Q^
    \rERROR: #{err_msg}\n
    \rUsage:
    \r\t#{COMMAND_PREFIX} #{cmd_usage_info} 
  ^

  Log.fatal msg
end