Skip to content

Commit

Permalink
Fix typos. Thanks to Bret Dawson.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jul 9, 2010
1 parent 497811a commit 6003b22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Bric/Util/Trans/SFTP.pm
Expand Up @@ -129,7 +129,7 @@ sub put_res {
next unless $server->is_active;

# Connect via SSH2 and establish SFTP channel.
my $ssh2 = _connect($server);
my $ssh2 = _connect_to($server);
my $sftp = $ssh2->sftp;
my $doc_root = $server->get_doc_root;
my $hn = $server->get_host_name;
Expand Down Expand Up @@ -221,7 +221,7 @@ sub del_res {
next unless $server->is_active;

# Connect via SSH2 and establish SFTP channel.
my $ssh2 = _connect($server);
my $ssh2 = _connect_to($server);
my $sftp = $ssh2->sftp;
my $doc_root = $server->get_doc_root;
my $hn = $server->get_host_name;
Expand Down Expand Up @@ -260,7 +260,7 @@ NONE.
=over 4
=item _connect
=item _connect_to
Establishes an SSH2 connection.
Expand All @@ -272,7 +272,7 @@ sub _connect_to {
my $hn = $server->get_host_name;
my $ssh2 = Net::SSH2->new;

$ssh2->connect(split /:/ => $hn) or trow_gen(
$ssh2->connect(split /:/ => $hn) or throw_gen(
error => "Error connecting to '$hn' via SSH2",
payload => join ' ', $ssh2->error,
);
Expand Down

0 comments on commit 6003b22

Please sign in to comment.