Class: S3Repo::Signer

Inherits:
Base
  • Object
show all
Defined in:
lib/s3repo/signer.rb

Overview

Signer object, signs files w/ GPG

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from S3Repo::Base

Instance Method Details

#sign(path) ⇒ Object



5
6
7
8
9
# File 'lib/s3repo/signer.rb', line 5

def sign(path)
  sig_path = "#{path}.sig"
  run "gpg --detach-sign --local-user '#{key}' #{path}"
  sig_path
end