Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fedc83b
Showing
23 changed files
with
484 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,48 @@ | |||
Upload-Web-* | |||
|
|||
# Compiled source # | |||
################### | |||
*.com | |||
*.class | |||
*.dll | |||
*.exe | |||
*.o | |||
*.so | |||
|
|||
# Packages # | |||
############ | |||
# it's better to unpack these files and commit the raw source | |||
# git has its own built in compression methods | |||
*.7z | |||
*.dmg | |||
*.gz | |||
*.iso | |||
*.jar | |||
*.rar | |||
*.tar | |||
*.zip | |||
*.apk | |||
|
|||
# Logs and databases # | |||
###################### | |||
*.log | |||
*.sql | |||
*.sqlite | |||
|
|||
# OS generated files # | |||
###################### | |||
.DS_Store? | |||
ehthumbs.db | |||
Icon? | |||
Thumbs.db | |||
|
|||
# Configuration files # | |||
####################### | |||
*.project | |||
*.settings | |||
*.classpath | |||
|
|||
# Editor generated files # | |||
########################## | |||
*.swp | |||
*.bak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
Release history for Upload-Web | |||
|
|||
0.0.1 | |||
|
|||
First version, released on unsuspecting world. | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,31 @@ | |||
name = Upload-Web | |||
author = Hyungsuk Hong <aanoaa@gmail.com> | |||
license = Perl_5 | |||
copyright_holder = Hyungsuk Hong | |||
copyright_year = 2011 | |||
|
|||
version = 0.0.1 | |||
[@Basic] | |||
[PodWeaver] | |||
[AutoPrereqs] | |||
[PkgVersion] | |||
[ReadmeMarkdownFromPod] | |||
[InstallGuide] | |||
[Prereqs / RuntimeRequires] | |||
Catalyst::Authentication::Realm::SimpleDB = 0 | |||
Catalyst::Plugin::Authentication = 0 | |||
Catalyst::Plugin::Authorization::Roles = 0 | |||
Catalyst::Plugin::Cache = 0 | |||
Catalyst::Plugin::Captcha = 0 | |||
Catalyst::Plugin::ConfigLoader = 0 | |||
Catalyst::Plugin::FillInForm = 0 | |||
Catalyst::Plugin::FormValidator::Simple = 0 | |||
Catalyst::Plugin::Session = 0 | |||
Catalyst::Plugin::Session::State::Cookie = 0 | |||
Catalyst::Plugin::Session::Store::FastMmap = 0 | |||
Catalyst::Plugin::Session::Store::File = 0 | |||
Catalyst::Plugin::StackTrace = 0 | |||
Catalyst::Plugin::Static::Simple = 0 | |||
Catalyst::Plugin::Unicode::Encoding = 0 | |||
DBIx::Class::EncodedColumn = 0 | |||
DBIx::Class::TimeStamp = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,75 @@ | |||
package Upload::Web; | |||
use Moose; | |||
use namespace::autoclean; | |||
|
|||
use Catalyst::Runtime 5.80; | |||
|
|||
# Set flags and add plugins for the application. | |||
# | |||
# Note that ORDERING IS IMPORTANT here as plugins are initialized in order, | |||
# therefore you almost certainly want to keep ConfigLoader at the head of the | |||
# list if you're using it. | |||
# | |||
# -Debug: activates the debug mode for very useful log messages | |||
# ConfigLoader: will load the configuration from a Config::General file in the | |||
# application's home directory | |||
# Static::Simple: will serve static files from the application's root | |||
# directory | |||
|
|||
use Catalyst qw/ | |||
-Debug | |||
ConfigLoader | |||
Static::Simple | |||
/; | |||
|
|||
extends 'Catalyst'; | |||
|
|||
our $VERSION = '0.01'; | |||
|
|||
# Configure the application. | |||
# | |||
# Note that settings in upload_web.conf (or other external | |||
# configuration file that you set up manually) take precedence | |||
# over this when using ConfigLoader. Thus configuration | |||
# details given here can function as a default configuration, | |||
# with an external configuration file acting as an override for | |||
# local deployment. | |||
|
|||
__PACKAGE__->config( | |||
name => 'Upload::Web', | |||
# Disable deprecated behavior needed by old applications | |||
disable_component_resolution_regex_fallback => 1, | |||
); | |||
|
|||
# Start the application | |||
__PACKAGE__->setup(); | |||
|
|||
|
|||
=head1 NAME | |||
Upload::Web - Catalyst based application | |||
=head1 SYNOPSIS | |||
script/upload_web_server.pl | |||
=head1 DESCRIPTION | |||
[enter your description here] | |||
=head1 SEE ALSO | |||
L<Upload::Web::Controller::Root>, L<Catalyst> | |||
=head1 AUTHOR | |||
Hyungsuk Hong <aanoaa@gmail.com> | |||
=head1 LICENSE | |||
This library is free software. You can redistribute it and/or modify | |||
it under the same terms as Perl itself. | |||
=cut | |||
|
|||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,69 @@ | |||
package Upload::Web::Controller::Root; | |||
use Moose; | |||
use namespace::autoclean; | |||
|
|||
BEGIN { extends 'Catalyst::Controller' } | |||
|
|||
# | |||
# Sets the actions in this controller to be registered with no prefix | |||
# so they function identically to actions created in MyApp.pm | |||
# | |||
__PACKAGE__->config(namespace => ''); | |||
|
|||
=head1 NAME | |||
Upload::Web::Controller::Root - Root Controller for Upload::Web | |||
=head1 DESCRIPTION | |||
[enter your description here] | |||
=head1 METHODS | |||
=head2 index | |||
The root page (/) | |||
=cut | |||
|
|||
sub index :Path :Args(0) { | |||
my ( $self, $c ) = @_; | |||
|
|||
# Hello World | |||
$c->response->body( $c->welcome_message ); | |||
} | |||
|
|||
=head2 default | |||
Standard 404 error page | |||
=cut | |||
|
|||
sub default :Path { | |||
my ( $self, $c ) = @_; | |||
$c->response->body( 'Page not found' ); | |||
$c->response->status(404); | |||
} | |||
|
|||
=head2 end | |||
Attempt to render a view, if needed. | |||
=cut | |||
|
|||
sub end : ActionClass('RenderView') {} | |||
|
|||
=head1 AUTHOR | |||
Hyungsuk Hong <aanoaa@gmail.com> | |||
=head1 LICENSE | |||
This library is free software. You can redistribute it and/or modify | |||
it under the same terms as Perl itself. | |||
=cut | |||
|
|||
__PACKAGE__->meta->make_immutable; | |||
|
|||
1; |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,30 @@ | |||
#!/usr/bin/env perl | |||
|
|||
use Catalyst::ScriptRunner; | |||
Catalyst::ScriptRunner->run('Upload::Web', 'CGI'); | |||
|
|||
1; | |||
|
|||
=head1 NAME | |||
upload_web_cgi.pl - Catalyst CGI | |||
=head1 SYNOPSIS | |||
See L<Catalyst::Manual> | |||
=head1 DESCRIPTION | |||
Run a Catalyst application as a cgi script. | |||
=head1 AUTHORS | |||
Catalyst Contributors, see Catalyst.pm | |||
=head1 COPYRIGHT | |||
This library is free software. You can redistribute it and/or modify | |||
it under the same terms as Perl itself. | |||
=cut | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,60 @@ | |||
#!/usr/bin/env perl | |||
|
|||
use strict; | |||
use warnings; | |||
|
|||
use Catalyst::ScriptRunner; | |||
Catalyst::ScriptRunner->run('Upload::Web', 'Create'); | |||
|
|||
1; | |||
|
|||
=head1 NAME | |||
upload_web_create.pl - Create a new Catalyst Component | |||
=head1 SYNOPSIS | |||
upload_web_create.pl [options] model|view|controller name [helper] [options] | |||
Options: | |||
--force don't create a .new file where a file to be created exists | |||
--mechanize use Test::WWW::Mechanize::Catalyst for tests if available | |||
--help display this help and exits | |||
Examples: | |||
upload_web_create.pl controller My::Controller | |||
upload_web_create.pl -mechanize controller My::Controller | |||
upload_web_create.pl view My::View | |||
upload_web_create.pl view HTML TT | |||
upload_web_create.pl model My::Model | |||
upload_web_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\ | |||
dbi:SQLite:/tmp/my.db | |||
upload_web_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\ | |||
[Loader opts like db_schema, naming] dbi:Pg:dbname=foo root 4321 | |||
[connect_info opts like quote_char, name_sep] | |||
See also: | |||
perldoc Catalyst::Manual | |||
perldoc Catalyst::Manual::Intro | |||
perldoc Catalyst::Helper::Model::DBIC::Schema | |||
perldoc Catalyst::Model::DBIC::Schema | |||
perldoc Catalyst::View::TT | |||
=head1 DESCRIPTION | |||
Create a new Catalyst Component. | |||
Existing component files are not overwritten. If any of the component files | |||
to be created already exist the file will be written with a '.new' suffix. | |||
This behavior can be suppressed with the C<-force> option. | |||
=head1 AUTHORS | |||
Catalyst Contributors, see Catalyst.pm | |||
=head1 COPYRIGHT | |||
This library is free software. You can redistribute it and/or modify | |||
it under the same terms as Perl itself. | |||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,48 @@ | |||
#!/usr/bin/env perl | |||
|
|||
use Catalyst::ScriptRunner; | |||
Catalyst::ScriptRunner->run('Upload::Web', 'FastCGI'); | |||
|
|||
1; | |||
|
|||
=head1 NAME | |||
upload_web_fastcgi.pl - Catalyst FastCGI | |||
=head1 SYNOPSIS | |||
upload_web_fastcgi.pl [options] | |||
Options: | |||
-? -help display this help and exits | |||
-l --listen Socket path to listen on | |||
(defaults to standard input) | |||
can be HOST:PORT, :PORT or a | |||
filesystem path | |||
-n --nproc specify number of processes to keep | |||
to serve requests (defaults to 1, | |||
requires -listen) | |||
-p --pidfile specify filename for pid file | |||
(requires -listen) | |||
-d --daemon daemonize (requires -listen) | |||
-M --manager specify alternate process manager | |||
(FCGI::ProcManager sub-class) | |||
or empty string to disable | |||
-e --keeperr send error messages to STDOUT, not | |||
to the webserver | |||
--proc_title Set the process title (is possible) | |||
=head1 DESCRIPTION | |||
Run a Catalyst application as fastcgi. | |||
=head1 AUTHORS | |||
Catalyst Contributors, see Catalyst.pm | |||
=head1 COPYRIGHT | |||
This library is free software. You can redistribute it and/or modify | |||
it under the same terms as Perl itself. | |||
=cut |
Oops, something went wrong.