module InfoStatusGPG
takeltau info status gpg
Public Instance Methods
info_status_gpg()
click to toggle source
Backend method for info status gpg. @return [Boolean] is GPG available? rubocop:disable Metrics/MethodLength
# File lib/takeltau/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
Private Instance Methods
_info_status_gpg_agent()
click to toggle source
Check gpg agent
# File lib/takeltau/info/status/gpg.rb, line 35 def _info_status_gpg_agent status_agent = try config.active['cmd_info_status_gpg_agent'] status_agent.exitstatus.zero? end
_info_status_gpg_keys()
click to toggle source
Check gpg keys
# File lib/takeltau/info/status/gpg.rb, line 29 def _info_status_gpg_keys status_keys = try config.active['cmd_info_status_gpg_keys'] status_keys.exitstatus.zero? end