Module: CommandProc
- Included in:
- ConfigCommand, VzcdnApp, Zone
- Defined in:
- lib/command_proc.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 |
# File 'lib/command_proc.rb', line 9 def self.included(base) base.extend(ClassMethods) base.init_instances end |
Instance Method Details
#help(args) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/command_proc.rb', line 2 def help(args) puts "Available commands:" @usage.each { |method| puts method[0].to_s + ": " + method[1] } end |