diff options
Diffstat (limited to 'lib/Mail/Run/Crypt.pm')
-rw-r--r-- | lib/Mail/Run/Crypt.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Mail/Run/Crypt.pm b/lib/Mail/Run/Crypt.pm index 5dc148a..5631acb 100644 --- a/lib/Mail/Run/Crypt.pm +++ b/lib/Mail/Run/Crypt.pm @@ -157,12 +157,20 @@ via environment variables or command-line options. =head1 SYNOPSIS + use Mail::Run::Crypt; + ... my $mrc = Mail::Run::Crypt->new( + mailto => 'you@example.net', + ); + $mrc->run($command, @args); + ... + my $mrc = Mail::Run::Crypt->new( + sign => 1, keyid => 0x1234DEAD, passphrase => 'able was i ere i saw elba', mailto => 'you@example.net', ); - $mrc->run(qw(rsync -a /mnt/a/ remote:mnt/b)); + $mrc->run($command, @args); =head1 SUBROUTINES/METHODS |