Class: Autoweb::Command::Base

Inherits:
Object
  • Object
show all
Includes:
UI
Defined in:
lib/autoweb/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from UI

#ask, #ask_loop, #confirm, #display, #display2, #error, #format_date, #shell

Constructor Details

#initialize(args) ⇒ Base

Returns a new instance of Base.



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

def initialize(args)
  @args = args             
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



6
7
8
# File 'lib/autoweb/command.rb', line 6

def args
  @args
end

Instance Method Details

#usageObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/autoweb/command.rb', line 12

def usage
 "=== Command List:\n  automan console\n  automan dbconsole\n  automan help\n  automan update\n \n\n"
end