class Gem::Tasks::Sign::PGP


The ‘sign:pgp` task.

def define


Defines the `sign:pgp` task.
def define
  super(:pgp)
  task :pgp => 'sign:pgp'
end

def initialize(options={})

Parameters:
  • options (Hash) --
def initialize(options={})
  super()
  yield self if block_given?
  define
end

def sign(path)

Other tags:
    Api: - semipublic

Parameters:
  • path (String) --
def sign(path)
  status "Signing #{File.basename(path)} ..."
  run 'gpg', '--sign', '--detach-sign', '--armor', path
end