Module: Heirloom::Cipher::Shared

Includes:
Utils::File
Included in:
Data, File
Defined in:
lib/heirloom/cipher/shared.rb

Instance Method Summary collapse

Methods included from Utils::File

#path, #path_separator, #pathext, #which

Instance Method Details

#gpg_in_path?Boolean

Returns:

  • (Boolean)


9
10
11
12
13
14
15
# File 'lib/heirloom/cipher/shared.rb', line 9

def gpg_in_path?
  unless which('gpg')
    logger.error "gpg not found in path."
    return false
  end
  true
end