Module: InfoStatusGPG

Included in:
Takelage::InfoStatus
Defined in:
lib/takelage/info/status/gpg.rb

Overview

takelage info status gpg

Instance Method Summary collapse

Instance Method Details

#info_status_gpgBoolean

Backend method for info status gpg. rubocop:disable Metrics/MethodLength

Returns:

  • (Boolean)

    is GPG available?



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/takelage/info/status/gpg.rb', line 8

def info_status_gpg
  log.debug 'Check gpg status'

  unless _info_status_gpg_keys
    log.error 'gpg keys are not available'
    return false
  end

  unless _info_status_gpg_agent
    log.error 'gpg agent is not available'
    return false
  end

  log.debug 'gpg is available'
  true
end