QueueInstallCommand class
dox queue:install [--driver=database|redis|sync]. dox add queue
runs it. It sets up the queue in an app: the config, the provider,
bin/queue.dart, a sample job and the REDIS_* keys of the redis
driver. The database driver (the default) also adds
dox_queue_database and the migration of the jobs tables.
It never overwrites a file, so it is safe to run twice.
Constructors
- QueueInstallCommand({Directory? root, ProcessRunner? runner})
-
rootis the app folder (the current folder by default).runnerrunsdart, tests pass a fake one.
Properties
- description → String
-
one line for
dox helpno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
the name after
dox, likequeue:tableno setter - root → Directory?
-
final
- runner → ProcessRunner?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usage → String
-
how to call it, like
make:report <name>. Shown bydox help. The default is name.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
List< String> args) → Future<void> -
run the command.
argsare the words after the name. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
queueConfig(
String app, String driver) → String -
lib/config/queue.dartfordriver -
queueEntry(
String app) → String -
bin/queue.dart, the same as the app template -
queueProvider(
String app, String driver) → String -
lib/providers/queue_provider.dartfordriver