From 541e2b41af8cc44ad3eb0638618bc457c666d612 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 7 Apr 2018 19:20:00 -0400 Subject: a bit of a quantum leap It's now possible to load the CGIs into a mojolicious controller. Compatibility isn't 100% yet, but it should give a migration path for any random CGI to become a proper controller. --- scripts/bugzilla_quantum | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/bugzilla_quantum (limited to 'scripts') diff --git a/scripts/bugzilla_quantum b/scripts/bugzilla_quantum new file mode 100755 index 000000000..1112faabd --- /dev/null +++ b/scripts/bugzilla_quantum @@ -0,0 +1,17 @@ +#!/usr/bin/env perl +use 5.10.1; +use strict; +use warnings; + +use File::Basename qw(basename dirname); +use File::Spec::Functions qw(catdir rel2abs); + +BEGIN { + require lib; + my $dir = rel2abs( catdir(dirname(__FILE__), '..') ); + lib->import( $dir, catdir( $dir, 'lib' ), catdir( $dir, qw(local lib perl5) ) ); +} +use Mojolicious::Commands; + +# Start command line interface for application +Mojolicious::Commands->start_app('Bugzilla::Quantum'); \ No newline at end of file -- cgit v1.2.3-24-g4f1b