Project

viperaptor

0.0
The project is in a healthy, maintained state
New reincarnation of Rambler Generamba tool (original code got from Generamba)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Project Readme

Original code taken from https://github.com/AYastrebov/Generamba. Thanks to authors!!!

NOTE: Most command works as it was in Generamba.

Build Status Gem Version

Viperaptor is a code generator made for working with Xcode. Primarily it is designed to generate code modules but it is quite easy to customize it for generation of any other classes (both in Objective-C and Swift).

Viperaptor Screenshot

Key features

  • Supports work with .xcodeproj files out of the box. All generated class files are automatically placed to specific folders and groups of Xcode project.
  • Can generate both code itself and tests adding them to right targets.
  • Based on work with liquid-templates that have plain and readable syntax in comparison with templates for Xcode.
  • It is very easy to create a new module: viperaptor gen [MODULE_NAME] [TEMPLATE_NAME] or viperaptor gen. You do not need to input a bunch of data each time because each project corresponds to only one configuration file that holds standard file system and Xcode-project pathes, names of targets, information about the author.
  • You can use multiple Rambafiles: Just should contain 'Rambafile' prefix.

Installation

Ruby 2.3 or later version is required. To check your current Ruby version run this command in terminal:

$ ruby --version

When necessary you can install the required Ruby version with the help of rvm or rbenv.

In your terminal run:

gem install viperaptor

Usage

  1. Run bundle exec viperaptor 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.
  2. 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'}.
  3. Run bundle exec viperaptor template install. All the templates will be placed in the '/Templates' folder of your current project.
  4. Run bundle exec viperaptor gen [MODULE_NAME] [TEMPLATE_NAME] - It creates module with specific name from specific template.

Additional info

Run viperaptor help to learn more about each of the Viperaptor features.

Wiki:

Other materials:

Authors

License

MIT