Hyper::Developer::Generator::Environment - class for generating a Hyper Environment
This document describes Hyper::Developer::Generator::Environment 0.01
use Hyper::Developer::Generator::Environment; my $object = Hyper::Developer::Generator::Environment->new({ base_path => '/srv/web/www.example.com/', namespace => 'Example', }); $object->create();
Used to create the initial environment for a Hyper Based Web Application.
$object->create();
Creates the following folders:
PATH USED FOR ------------------------------------------------------ $BASE_PATH/var/$NAMESPACE templates $BASE_PATH/etc/$NAMESPACE config files $BASE_PATH/cgi-bin/$LOWER_CASE_NAMESPACE CGI binarys $BASE_PATH/htdocs/$LOWER_CASE_NAMESPACE static files
And creates the following files:
The CGI Script which is used for calling Hyper Applications.
So a sample URL to start a usecase of a service in the namespace >Example< could look like:
http://www.example.com/cgi-bin/example/index.pl?service=Test&usecase=Test
Initial Context.ini with global configuration items.
version
Hyper::Developer::Generator
Class::Std
File::Path
Hyper::Functions
Hyper::Error
$Author: ac0v $
$Id: Environment.pm 333 2008-02-18 22:59:27Z ac0v $
$Revision: 333 $
$Date: 2008-02-18 23:59:27 +0100 (Mon, 18 Feb 2008) $
$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper-Developer/branches/0.07/lib/Hyper/Developer/Generator/Environment.pm $
Andreas Specht <ACID@cpan.org>
<ACID@cpan.org>
Copyright (c) 2007, Andreas Specht <ACID@cpan.org>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Hyper::Developer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hyper::Developer
CPAN shell
perl -MCPAN -e shell install Hyper::Developer
For more information on module installation, please visit the detailed CPAN module installation guide.