Module: InfoStatusGPG

Included in:
Takeltau::InfoStatus
Defined in:
lib/takeltau/info/status/gpg.rb

Overview

tau info status gpg

Instance Method Summary collapse

Instance Method Details

#info_status_gpgBoolean

Backend method for info status gpg.

Returns:

  • (Boolean)

    is GPG available?



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

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