Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Keep it stupid simple Generator
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
LICENSE
README
Rakefile

README

= KISS Generator

Keep it stupid simple (or simple stupid) code generator. 

== Installation

  gem install kissgen

== API Usage

  require "kissgen"

  @generator = KISSGen.generator(
                   :generator => "/path/to/generator", 
                   :directory => "/path/where/files/are/generated", 
                   :pretend   => true,
                   :assignes  => {:my_name => "lancelot", ...},
                   :files     => {"app", "models"}
                  )

 Now perform the generation:

   @generator.generate!

 Note that the last loaded generator is retrievable via:

  @generator = KISSGen.generator # => Last loaded generator
  
  
Instead of using @g.directory and @g.assign, you can also create a setup.rb file inside of your generator directory
and run the instance methods directly from there. IE:
  
setup.rb:
  directory "/app"
  file "README"
  
== Console Usage

  kissgen -s /path/to/generator -t /path/where/files/are/generated

== Repository

  visit http://github.com/lancecarlson/kissgen/ or git clone git://github.com/lancecarlson/kissgen.git
Something went wrong with that request. Please try again.