GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Badger::Workplace(3) User Contributed Perl Documentation Badger::Workplace(3)

Badger::Workplace - a place to do work

This is a very simple base class for modules that operate on or around a particular filesystem directory. See Badger::Config::Filesystem for an example of it in us.

Any of "root", "dir" or "directory" can be provided to specify the root directory of the workplace.

This option can be set to define a Universal Resource Name (URN) for the workplace for reference purposes. If undefined it defaults to the name of the root directory.

This option can be set to define a Universal Resource Identifier (URN) for the workplace for reference purposes. If undefined it defaults to the name of the value of urn.

The object constructor will fail if the root directory specified via root (or "dir" or "directory") does not exist. Alternately, set the "mkdir" option to any true value and the directory will be created automatically.

Returns a Badger::Filesystem::Directory object for a named sub-directory relative to the workplace root.

When called with any arguments it returns a Badger::Filesystem::Directory object for the workplace root directory.

Returns a Badger::Filesystem::File object for a named files relative to the workplace root.

When called without any arguments this method returns the base URI for the workspace.

    print $workspace->uri;              # e.g. foo

When called with a relative URI path as an argument, it returns the URI resolved relative to the project base URI.

    print $workspace->uri('bar');       # e.g. foo/bar

Andy Wardley <http://wardley.org/>

Copyright (C) 2008-2014 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2016-12-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.