Jifty::Script::Model(3pm)

Jifty::Script::Model3pm

Add a model class to your jifty application

Usage

    jifty model --name MyFirstModel
    jifty model --name MyFirstModel --force
  Options:
    --name <name>      name of the model
    --force            overwrite files
    --help             brief help message
    --man              full documentation

Overview

Creates a skeleton model file.

options

--name NAME (required)

Name of the model class.

--force

By default, this will stop and warn you if any of the files it is going to write already exist. Passing the --force flag will make it overwrite the files.

--help

Print a brief help message and exits.

--man

Prints the manual page and exits.

Overview

This creates a skeleton of a new model class for your jifty application, complete with a skeleton of a test suite for it, as well.

Methods

run

Creates a skeleton file under "lib/ApplicationClass/Model/Model", as well as a skeleton tests file.

Overview

A basic test harness for the $model model.

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

From libjifty-perl 1.10518+dfsg-2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.