Ruby 2.2 or later version is required. To check your current Ruby version run this command in terminal:
$ ruby --version
Since current version from Gems is not compatible with Xcode 9/10 - install fixed version from this repo:
sudo gem uninstall generamba
sudo gem install specific_install
sudo gem specific_install [email protected]:CleverPumpkin/Generamba.git
-
*Only if starting from scratch and there is no
Rambafile
file in a project directory.Run
generamba setup
in the project root folder. This command helps to create Rambafile that define all configuration needed to generate code. You can modify this file directly in future. -
*Only if starting from scratch and there is no
Rambafile
file in a project directory.Add all templates planned to use in the project to the generated Rambafile. You can begin with one of the templates from our catalog:
{name: 'rviper_controller'}
. -
Run
generamba template install
. All the templates will be placed in the '/Templates' folder of your current project. -
Run
generamba gen [MODULE_NAME] [TEMPLATE_NAME]
- It creates module with specific name from specific template.
Run generamba help
to learn more about each of the Generamba features.
Wiki:
Other materials:
- [Russian] Rambler.iOS V: Generamba and Code Generation (Slides | Video)
- Introduction to Generamba
- Egor Tolstoy, Beniamin Sarkisyan, Andrey Zarembo and the rest of Rambler.iOS team.
MIT