Class: WebTranslateIt::Safe::Gpg

Inherits:
Pipe show all
Defined in:
lib/web_translate_it/safe/gpg.rb

Instance Attribute Summary

Attributes inherited from Stream

#backup, #config

Instance Method Summary collapse

Methods inherited from Pipe

#process

Methods inherited from Stream

#expand, #initialize

Constructor Details

This class inherits a constructor from WebTranslateIt::Safe::Stream

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
# File 'lib/web_translate_it/safe/gpg.rb', line 7

def active?
  raise "can't use both gpg password and pubkey" if key && password

  !!(password || key)
end