Perl-Dist-WiX

changeset 1062:279135cd7736

Make library_directory an attribute with an overridable builder.
author Curtis Jewell <perl@curtisjewell.name>
date Thu Jun 16 01:02:18 2011 -0600 (2011-06-16)
parents 9438655c2750
children abd5573beeeb
files lib/Perl/Dist/WiX/Mixin/Libraries.pm
line diff
     1.1 --- a/lib/Perl/Dist/WiX/Mixin/Libraries.pm	Wed Jun 15 22:59:23 2011 -0600
     1.2 +++ b/lib/Perl/Dist/WiX/Mixin/Libraries.pm	Thu Jun 16 01:02:18 2011 -0600
     1.3 @@ -95,11 +95,19 @@
     1.4  
     1.5  
     1.6  
     1.7 -sub library_directory {
     1.8 +has 'library_directory' => (
     1.9 +	is       => 'ro',
    1.10 +	isa      => Str,
    1.11 +	init_arg => undef,
    1.12 +	lazy     => 1,
    1.13 +	builder  => '_build_library_directory',
    1.14 +);
    1.15 +
    1.16 +sub _build_library_directory {
    1.17  	my $self = shift;
    1.18  
    1.19  	# Implemented as a plugin.
    1.20 -	PDWiX::Unimplemented->throw();
    1.21 +	PDWiX::Unimplemented->throw( message => '_build_library_directory (in plugin)', );
    1.22  	return '';
    1.23  }
    1.24