Class: MtTool::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/mt_tool/commands.rb

Instance Method Summary collapse

Instance Method Details

#create(path = nil) ⇒ Object



21
22
23
24
# File 'lib/mt_tool/commands.rb', line 21

def create(path = nil)
  Module.new(self .args,self .options ).create(path)

end

#generate(path = nil, name, lang, class_prefix, author) ⇒ Object



14
15
16
# File 'lib/mt_tool/commands.rb', line 14

def generate(path = nil, name, lang, class_prefix, author)
  Module.new(self .args,self .options).generate(path, name, lang, class_prefix, author)
end

#generateViperModule(name, author, path) ⇒ Object



29
30
31
# File 'lib/mt_tool/commands.rb', line 29

def generateViperModule(name,author, path )
  Module.new(self .args,self .options).create_viper_module(path, name, "swift","", author)
end

#model_class(prefix, name, path, output_path) ⇒ Object



35
36
37
38
# File 'lib/mt_tool/commands.rb', line 35

def model_class(prefix,name, path ,output_path)
  OcModel.new(self .args,self .options ).create(prefix,name ,path,output_path)

end

#qt_model_class(prefix, name, path, output_path) ⇒ Object



42
43
44
45
# File 'lib/mt_tool/commands.rb', line 42

def qt_model_class(prefix,name, path ,output_path)
  OcModel.new(self .args,self .options ).qt_create(prefix,name ,path,output_path)

end