Skip to content

Commit 89d9ce9

Browse files
committed
removed unused sub, fixed remote_match of ssh keys, new build
1 parent fcd57a0 commit 89d9ce9

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

Diff for: Mojolicious-Command-deploy-heroku-0.02.tar.gz

-57 Bytes
Binary file not shown.

Diff for: lib/Mojolicious/Command/deploy/heroku.pm

+1-14
Original file line numberDiff line numberDiff line change
@@ -334,24 +334,11 @@ sub create_or_get_app {
334334
return $res;
335335
}
336336

337-
sub upload_keys {
338-
my $h = shift;
339-
340-
# Verify that remote keys match existing keys
341-
my %keys = map { $_->{contents} => $_->{email} } $h->keys;
342-
my $match = grep defined $keys{$_->all} => ssh_keys();
343-
344-
if (!$h->keys) {
345-
print "\nHeroku does not have any SSH keys stored for you.\n";
346-
$h->add_key(key => create_or_get_key());
347-
}
348-
}
349-
350337
sub remote_key_match {
351338
my $h = pop;
352339

353340
my %remote_keys = map { $_->{contents} => $_->{email} } $h->keys;
354-
my @local_keys = map substr($_, 0, -1) => ssh_keys();
341+
my @local_keys = map substr(slurp($_), 0, -1) => ssh_keys();
355342

356343
#my @local_keys = map substr($_->all, 0, -1) => ssh_keys();
357344

Diff for: t/deploy.t

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ ok $o->can($_) for qw/
2525
run
2626
save_local_api_key
2727
ssh_keys
28-
upload_keys
2928
validate
3029
verify_app
3130
/;

0 commit comments

Comments
 (0)