Module: InfoStatusGopass
- Included in:
- Takelage::InfoStatus
- Defined in:
- lib/takelage/info/status/gopass.rb
Overview
takelage info status gopass
Instance Method Summary collapse
-
#info_status_gopass ⇒ Boolean
Backend method for info status gopass.
Instance Method Details
#info_status_gopass ⇒ Boolean
Backend method for info status gopass. rubocop:disable Metrics/MethodLength
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/takelage/info/status/gopass.rb', line 8 def info_status_gopass log.debug 'Check gopass status' root = _info_status_gopass_root_store if root.chomp.empty? log.error 'gopass root store not found' return false end key = _info_status_lib_git_signingkey(root) unless _info_status_lib_git_key_available(key).exitstatus.zero? log.error 'gopass root store gpg key is not available' return false end log.debug 'gopass is available' true end |