Module: Dtf::Command

Defined in:
lib/dtf.rb

Defined Under Namespace

Classes: CreateUser, CreateVs, DeleteUser, DeleteVs, SetupDtf

Class Method Summary collapse

Class Method Details

.create_cmd(cmd, options) ⇒ Object



10
11
12
13
14
15
# File 'lib/dtf.rb', line 10

def self.create_cmd(cmd, options)
  Dtf::Command.const_get(cmd.camelize).new(cmd, options)    
rescue NameError  
  puts "DTF has no registered command by that name."
  puts "Please see 'dtf -h' for the list of recognized commands."
end