Sha256: 42f2ac3f8658c9e81d5bc126beb63dfe9d57bbe0b92c490dc3ca1bdd91acd094
Contents?: true
Size: 895 Bytes
Versions: 2
Compression:
Stored size: 895 Bytes
Contents
require 'rubygems/tasks/sign/task' module Gem class Tasks module Sign # # The `sign:pgp` task. # class PGP < Task # # Initializes the `sign` task. # # @param [Hash] options # Digest options. # def initialize(options={}) super() yield self if block_given? define end # # Defines the `sign:pgp` task. # def define sign_task :pgp task :pgp => 'sign:pgp' end # # PGP signs a package. # # @param [String] path # The path to the package. # # @api semipublic # def sign(path) status "Signing #{File.basename(path)} ..." run 'gpg', '--sign', '--detach-sign', '--armor', path end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubygems-tasks-0.2.4 | lib/rubygems/tasks/sign/pgp.rb |
rubygems-tasks-0.2.3 | lib/rubygems/tasks/sign/pgp.rb |