Class: Vtk::Commands::Module
- Inherits:
-
Thor
- Object
- Thor
- Vtk::Commands::Module
show all
- Defined in:
- lib/vtk/commands/module.rb,
lib/vtk/commands/module/add.rb,
lib/vtk/commands/module/model.rb,
lib/vtk/commands/module/service.rb,
lib/vtk/commands/module/controller.rb,
lib/vtk/commands/module/serializer.rb
Overview
Interfaces with vets-api modules
Defined Under Namespace
Classes: Add, Controller, Model, Serializer, Service
Instance Method Summary
collapse
Instance Method Details
#add(name) ⇒ Object
61
62
63
64
65
66
67
68
|
# File 'lib/vtk/commands/module.rb', line 61
def add(name)
if options[:help]
invoke :help, ['add']
else
require_relative 'module/add'
Vtk::Commands::Module::Add.new(name, options).execute
end
end
|
#controller(name) ⇒ Object
50
51
52
53
54
55
56
57
|
# File 'lib/vtk/commands/module.rb', line 50
def controller(name)
if options[:help]
invoke :help, ['controller']
else
require_relative 'module/controller'
Vtk::Commands::Module::Controller.new(name, options).execute
end
end
|
#model(name) ⇒ Object
38
39
40
41
42
43
44
45
|
# File 'lib/vtk/commands/module.rb', line 38
def model(name)
if options[:help]
invoke :help, ['model']
else
require_relative 'module/model'
Vtk::Commands::Module::Model.new(name, options).execute
end
end
|
#serializer(name) ⇒ Object
26
27
28
29
30
31
32
33
|
# File 'lib/vtk/commands/module.rb', line 26
def serializer(name)
if options[:help]
invoke :help, ['serializer']
else
require_relative 'module/serializer'
Vtk::Commands::Module::Serializer.new(name, options).execute
end
end
|
#service(name) ⇒ Object
14
15
16
17
18
19
20
21
|
# File 'lib/vtk/commands/module.rb', line 14
def service(name)
if options[:help]
invoke :help, ['service']
else
require_relative 'module/service'
Vtk::Commands::Module::Service.new(name, options).execute
end
end
|