convert the resource classes to use the new Resource::Pack api
[gitmo/moose-website.git] / lib / Moose / Website / Resource / Templates.pm
1 package Moose::Website::Resource::Templates;
2 use Moose;
3 use Resource::Pack;
4
5 our $VERSION   = '0.01';
6 our $AUTHORITY = 'cpan:STEVAN';
7
8 extends 'Resource::Pack::Resource';
9
10 has '+name' => (default => 'templates');
11
12 sub BUILD {
13     my $self = shift;
14
15     resource $self => as {
16         install_from(Path::Class::File->new(__FILE__)->parent
17                                                      ->subdir('Templates'));
18         dir template_dir => (
19             dir        => '.',
20             install_as => '',
21         );
22     };
23 }
24
25 __PACKAGE__->meta->make_immutable;
26
27 no Moose; no Resource::Pack; 1;
28
29 __END__
30
31 =pod
32
33 =head1 NAME
34
35 Moose::Website::Resource::Templates - A Moosey solution to this problem
36
37 =head1 SYNOPSIS
38
39   use Moose::Website::Resource::Templates;
40
41 =head1 DESCRIPTION
42
43 =head1 METHODS
44
45 =over 4
46
47 =item B<>
48
49 =back
50
51 =head1 BUGS
52
53 All complex software has bugs lurking in it, and this module is no
54 exception. If you find a bug please either email me, or add the bug
55 to cpan-RT.
56
57 =head1 AUTHOR
58
59 Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
60
61 =head1 COPYRIGHT AND LICENSE
62
63 Copyright 2010 Infinity Interactive, Inc.
64
65 L<http://www.iinteractive.com>
66
67 This library is free software; you can redistribute it and/or modify
68 it under the same terms as Perl itself.
69
70 =cut