Class: VzcdnApp

Inherits:
Object
  • Object
show all
Includes:
CommandProc
Defined in:
lib/vzcdn.rb

Instance Method Summary collapse

Methods included from CommandProc

#help, included

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