Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename to private method.
  • Loading branch information
Jeffrey Ryan Thalhammer committed Jan 22, 2014
1 parent d998c09 commit 2b941c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Dist/Zilla/Plugin/Pinto/Add.pm
Expand Up @@ -102,7 +102,7 @@ our $MINIMUM_PINTO_VERSION = version->parse('0.091');
sub BUILD {
my ($self) = @_;

my ($ok, $output) = $self->RUN_PINTO( -version );
my ($ok, $output) = $self->_run_pinto( -version );
my ($pinto_version) = ($output =~ m/version ([\d\._v]+) /);

$self->log_fatal("unable to parse pinto version from: $output")
Expand Down Expand Up @@ -131,7 +131,7 @@ sub before_release {
);

$self->log("checking if repository at $root is available");
my ($ok, $output) = $self->RUN_PINTO( nop => @args );
my ($ok, $output) = $self->_run_pinto( nop => @args );

if (not $ok) {
$self->log("repository at $root is not available");
Expand Down Expand Up @@ -171,7 +171,7 @@ sub release {


$self->log("adding $archive to repository at $root");
my ($ok, $output) = $self->RUN_PINTO( add => @args );
my ($ok, $output) = $self->_run_pinto( add => @args );

$ok ? $self->log("added $archive to $root ok")
: $self->log_fatal("failed to add $archive to $root: $output");
Expand All @@ -193,7 +193,7 @@ sub _ask_for_password {

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

sub RUN_PINTO {
sub _run_pinto {
my ($self, @args) = @_;

local $ENV{PINTO_NO_COLOR} = 1;
Expand Down

0 comments on commit 2b941c6

Please sign in to comment.