class Gem::Tasks::Sign::PGP


The ‘sign:pgp` task.

def define


Defines the `sign:pgp` task.
def define
  sign_task :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)

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