Sha256: c5e0a17433df43d708c59df6931071b136872a0c4889b316c4d7285c3fb2b477
Contents?: true
Size: 831 Bytes
Versions: 4
Compression:
Stored size: 831 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. # def sign(path) status "Signing #{File.basename(path)} ..." run 'gpg', '--sign', path end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems