Class: VzcdnApp
Instance Method Summary collapse
- #config(args) ⇒ Object
-
#initialize(name) ⇒ VzcdnApp
constructor
A new instance of VzcdnApp.
- #zone(args) ⇒ Object
Methods included from CommandProc
Constructor Details
#initialize(name) ⇒ VzcdnApp
Returns a new instance of VzcdnApp.
9 10 11 12 13 14 15 16 |
# File 'lib/vzcdn.rb', line 9 def initialize(name) @usage = { :zone => "zone related command", :config => "config related command" } @argtree = [ {:name => "zone", :usage => "zone related commands", :args=>[]}, {:name => "config", :usage => "config related commands", :args=>[]}] end |
Instance Method Details
#config(args) ⇒ Object
22 23 24 |
# File 'lib/vzcdn.rb', line 22 def config(args) ConfigCommand.invoke(args) end |
#zone(args) ⇒ Object
18 19 20 |
# File 'lib/vzcdn.rb', line 18 def zone(args) Zone.invoke(args) end |