lib/s3repo/metadata.rb in s3repo-0.1.7 vs lib/s3repo/metadata.rb in s3repo-0.2.0

- old
+ new

@@ -15,12 +15,18 @@ paths.each do |path| puts "Adding #{File.basename(path)} to repo.db" run("repo-add #{db_path} #{path}") end client.upload!('repo.db', db_path) + sign_db if ENV['S3REPO_SIGN_DB'] end private + + def sign_db + run "gpg --detach-sign --use-agent #{db_path}" + client.upload!('repo.db.sig', "#{db_path}.sig") + end def db_path @db_path ||= download_db end