AproJo
view release on metacpan or search on metacpan
The aprojo command line application
AproJo installs a command line application, "aprojo". It inherits from
the mojo command, but it provides extra functions specifically for use
with AproJo.
config
$ aprojo config [options]
This command writes a configuration file in your "APROJO_HOME" path. It
uses the preset defaults for all values, except that it prompts for a
secret. This can be any string, however stronger is better. You do not
need to memorize it or remember it. This secret protects the cookies
employed by AproJo from being tampered with on the client side.
AproJo does not need to be configured, however it is recommended to do
so to set your application's secret.
The "--force" option may be passed to overwrite any configuration file
in the current working directory. The default is to die if such a
configuration file is found.
lib/AproJo.pm view on Meta::CPAN
=back
=head2 The F<aprojo> command line application
L<AproJo> installs a command line application, C<aprojo>. It inherits from the L<mojo> command, but it provides extra functions specifically for use with AproJo.
=head3 config
$ aprojo config [options]
This command writes a configuration file in your C<APROJO_HOME> path. It uses the preset defaults for all values, except that it prompts for a secret. This can be any string, however stronger is better. You do not need to memorize it or remember it. ...
L<AproJo> does not need to be configured, however it is recommended to do so to set your application's secret.
The C<--force> option may be passed to overwrite any configuration file in the current working directory. The default is to die if such a configuration file is found.
=head3 setup
$ aprojo setup
This step is required. Run C<aprojo setup> to setup a database. It will use the default DBI settings (SQLite) or whatever is setup in the C<APROJO_CONFIG> configuration file.
lib/AproJo/Command/config.pm view on Meta::CPAN
package AproJo::Command::config;
use Mojo::Base 'Mojolicious::Command';
use Data::Dumper;
use Term::Prompt qw/prompt/;
use Getopt::Long;
has description =>
"Write an optional configuration file for your AproJo application.\n";
has usage => "usage: $0 config\n";
sub run {
my $self = shift;
local @ARGV = @_;
lib/AproJo/Command/config.pm view on Meta::CPAN
my $force = 0;
GetOptions("force" => \$force);
my $file = $self->app->config_file;
if (-e $file and not $force) {
die "Configuration file $file exists, use '--force' to proceed anyway.\n";
}
my $config = $self->app->config;
local $config->{secret} = prompt('x', 'Application Secret: ', '', '');
open my $fh, '>', $file
or die "Could not open file $file for writing: $!\n";
local $Data::Dumper::Terse = 1;
local $Data::Dumper::Sortkeys = 1;
print $fh Dumper $config
or die "Write to $file failed\n";
lib/AproJo/Command/setup.pm view on Meta::CPAN
package AproJo::Command::setup;
use Mojo::Base 'Mojolicious::Command';
use Term::Prompt qw/prompt/;
has description => "Create the database for your AproJo application.\n";
has usage => "usage: $0 setup\n";
sub run {
my ($self) = @_;
my $user = prompt('x', 'Admin Username: ', '', '');
my $full = prompt('x', 'Admin Full Name: ', '', '');
my $pass1 = prompt('p', 'Admin Password: ', '', '');
print "\n";
#TODO check for acceptable password
my $pass2 = prompt('p', 'Repeat Admin Password: ', '', '');
print "\n";
unless ($pass1 eq $pass2) {
die "Passwords do not match";
}
$self->inject_sample_data($user, $pass1, $full);
print "Database created! Run 'aprojo daemon' to start the server.\n";
}
share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/external/jshint.js view on Meta::CPAN
hasOwnProperty, help, history, i, id, identifier, immed, implieds, importPackage, include,
indent, indexOf, init, ins, internals, instanceOf, isAlpha, isApplicationRunning, isArray,
isDigit, isFinite, isNaN, iterator, java, join, jshint,
JSHINT, json, jquery, jQuery, keys, label, labelled, last, lastcharacter, lastsemic, laxbreak,
laxcomma, latedef, lbp, led, left, length, line, load, loadClass, localStorage, location,
log, loopfunc, m, match, max, maxcomplexity, maxdepth, maxerr, maxlen, maxstatements, maxparams,
member, message, meta, module, moveBy, moveTo, mootools, multistr, name, navigator, new, newcap,
nestedBlockDepth, noarg, node, noempty, nomen, nonew, nonstandard, nud, onbeforeunload, onblur,
onerror, onevar, onecase, onfocus, onload, onresize, onunload, open, openDatabase, openURL,
opener, opera, options, outer, param, parent, parseFloat, parseInt, passfail, plusplus,
postMessage, pop, predef, print, process, prompt, proto, prototype, prototypejs, provides, push,
quit, quotmark, range, raw, reach, reason, regexp, readFile, readUrl, regexdash,
removeEventListener, replace, report, require, reserved, resizeBy, resizeTo, resolvePath,
resumeUpdates, respond, rhino, right, runCommand, scroll, scope, screen, scripturl, scrollBy,
scrollTo, scrollbar, search, seal, self, send, serialize, sessionStorage, setInterval, setTimeout,
setter, setterToken, shift, slice, smarttabs, sort, spawn, split, statement, statementCount, stack,
status, start, strict, sub, substr, supernew, shadow, supplant, sum, sync, test, toLowerCase,
toString, toUpperCase, toint32, token, tokens, top, trailing, type, typeOf, Uint16Array,
Uint32Array, Uint8Array, undef, undefs, unused, urls, validthis, value, valueOf, var, vars,
version, verifyMaxParametersPerFunction, verifyMaxStatementsPerFunction,
verifyMaxComplexityPerFunction, verifyMaxNestedBlockDepthPerFunction, WebSocket, withstmt, white,
share/files/public/skins/default/jquery-ui-1.9.1.custom/development-bundle/external/jshint.js view on Meta::CPAN
},
declared, // Globals that were declared using /*global ... */ syntax.
devel = {
alert : false,
confirm : false,
console : false,
Debug : false,
opera : false,
prompt : false
},
dojo = {
dojo : false,
dijit : false,
dojox : false,
define : false,
"require" : false
},
( run in 3.003 seconds using v1.01-cache-2.11-cpan-6aa56a78535 )