Skip to content

Commit

Permalink
support passing options to Directory::Scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
bricas committed Jan 27, 2012
1 parent a1c35f2 commit ce7d921
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/SixteenColors/Archive.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ sub files {
}

sub extract {
my ( $self, $dir ) = @_;
my ( $self, $options ) = @_;
$options ||= {};
my $dir = Directory::Scratch->new( %$options );
my $zip = $self->archive;
$dir = Directory::Scratch->new; # custom extraction dir not yet supported

my $warn = '';
eval {
Expand Down

0 comments on commit ce7d921

Please sign in to comment.