Skip to content

Commit

Permalink
Update to Pinto-0.030.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Ryan Thalhammer committed Feb 23, 2012
1 parent 9c5b973 commit 38c29ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{{$NEXT}}

Updated to match API changes in Pinto. Now requires
Pinto-0.30 or later.

0.002 2011-12-15 00:31:55 America/Los_Angeles

The "stock" command now has an --author option, to stock
Expand Down
7 changes: 4 additions & 3 deletions lib/Dist/Zilla/App/Command/stock.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ package Dist::Zilla::App::Command::stock;
use strict;
use warnings;

use Pinto 0.029; # better Git support
use Pinto 0.030; # better Git support
use Pinto::Creator;
use Moose::Autobox;
use Dist::Zilla::App -command;
use Version::Requirements;

#-------------------------------------------------------------------------------

Expand Down Expand Up @@ -70,7 +71,7 @@ sub _stock_pantry {
my ($self, @deps) = @_;

my $pan = $self->_create_or_find_pantry();
my $pinto = Pinto->new(root_dir => $pan);
my $pinto = Pinto->new(root => $pan);
$pinto->new_batch(noinit => 1, nocommit => 1);
$pinto->add_action('Import', package_name => $_) for @deps;
$pinto->run_actions();
Expand All @@ -90,7 +91,7 @@ sub _create_or_find_pantry {
: -e $self->zilla->root->subdir('.git') ? 'Pinto::Store::VCS::Git'
: 'Pinto::Store::File';

my $creator = Pinto::Creator->new(root_dir => $pan);
my $creator = Pinto::Creator->new(root => $pan);
$creator->create(noinit => 1, store => $store);

return $pan;
Expand Down

0 comments on commit 38c29ab

Please sign in to comment.