Sha256: 6828a3c00f25fbc18f20100c23fb0d651b9457615da926a79f9d1f325c05424a

Contents?: true

Size: 1.35 KB

Versions: 1

Compression:

Stored size: 1.35 KB

Contents

= dm-gen


dm-gen is a collection of generators for DataMapper, to allieviate the need to
type boilerplate code to get started on a project. dm-gen uses
templater[http://github.com/jnicklas/templater] as a base.

== The Generators

=== one_file


The one file generator generates a single file, which sets up a connection to an
in memory sqlite3 database, along with debug logging and a example model, which
it then automigrates.  One file scripts are great to use as demonstration,
either of a bug, or just how to do something.

  dm-gen one_file validations_example


=== is


The is generator generates an 'is' plugin structure, appropriate for plugins
such as dm-is-list, dm-is-remixable etc.  A complete plugin structure is
generated, including a Rakefile and spec suite skeleton.

  dm-gen is example


=== adapter


The adapter generator generates an adapter structure, appropriate for adapters
to new data-sources, such as couchdb, YAML files, or anything else.  A complete
plugin structure is generated.  The adapter file generated comes with a lot of
documentation explaining the arguments and returns of the 4 methods in the DM
adaptor API.

  dm-gen adapter example

NB: This generates adapters with the 0.10.x API NOT the 0.9.x API.  So make sure
you're running a recent DataMapper release.

== COPYRIGHT

Copyright (c) 2008-2009 Jonathan Stott. See LICENSE for details.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm-gen-0.4.2 README.rdoc