[Bps-public-commit] Prophet branch, master, updated. 0.743-14-g8a52961

Jesse Vincent jesse at bestpractical.com
Wed Jul 21 17:18:58 EDT 2010


The branch, master has been updated
       via  8a52961adf92b730d639ab2f20646139bb9decea (commit)
      from  eb27c05e52385e059e3a8a679dacea4057c20873 (commit)

Summary of changes:
 lib/Prophet/CLI/Command/Publish.pm |    4 ++++
 lib/Prophet/CLI/PublishCommand.pm  |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 8a52961adf92b730d639ab2f20646139bb9decea
Author: Stephane Alnet <stephane at shimaore.net>
Date:   Wed Jul 21 11:56:02 2010 +0200

    Add support for rsync remote-shell

diff --git a/lib/Prophet/CLI/Command/Publish.pm b/lib/Prophet/CLI/Command/Publish.pm
index c04676b..b205517 100644
--- a/lib/Prophet/CLI/Command/Publish.pm
+++ b/lib/Prophet/CLI/Command/Publish.pm
@@ -30,6 +30,9 @@ sub run {
     my %previous_sources_by_name
         = $self->app_handle->config->sources( variable => 'publish-url' );
 
+    my %shell_by_name
+        = $self->app_handle->config->sources( variable => 'publish-shell' );
+
     my $to = exists $previous_sources_by_name{$self->arg('to')}
         ? $previous_sources_by_name{$self->arg('to')}
         : $self->arg('to');
@@ -62,6 +65,7 @@ sub run {
     $self->publish_dir(
         from => $from,
         to   => $to,
+        shell => $shell_by_name{$self->arg('to')},
     );
 
     print "Publication complete.\n";
diff --git a/lib/Prophet/CLI/PublishCommand.pm b/lib/Prophet/CLI/PublishCommand.pm
index 7f2eaeb..46291b2 100644
--- a/lib/Prophet/CLI/PublishCommand.pm
+++ b/lib/Prophet/CLI/PublishCommand.pm
@@ -59,6 +59,8 @@ END_WARNING
         }
     }
     
+    push @args, '-e', $args{shell} if defined $args{shell};
+
     push @args, '--recursive', '--' , $args{from}, $args{to};
 
     my $ret = system($rsync, @args);

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list