Sha256: bbe3811a9e3900d5f52f4fc5fc9fc48cc50efa2ddb817870ae3285d4f16bfd81

Contents?: true

Size: 829 Bytes

Versions: 40

Compression:

Stored size: 829 Bytes

Contents

# frozen_string_literal: true

# tau info status gopass
module InfoStatusGopass
  # Backend method for info status gopass.
  # @return [Boolean] is gopass available?
  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

  private

  # Get gopass root store
  def _info_status_gopass_root_store
    cmd_gopass_root_store = config.active['cmd_info_status_gopass_root_store']
    (run cmd_gopass_root_store).chomp
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
takeltau-0.45.8 lib/takeltau/info/status/gopass.rb
takeltau-0.45.6 lib/takeltau/info/status/gopass.rb
takeltau-0.45.5 lib/takeltau/info/status/gopass.rb
takeltau-0.45.4 lib/takeltau/info/status/gopass.rb
takeltau-0.45.3 lib/takeltau/info/status/gopass.rb
takeltau-0.45.2 lib/takeltau/info/status/gopass.rb
takeltau-0.45.0 lib/takeltau/info/status/gopass.rb
takeltau-0.44.42 lib/takeltau/info/status/gopass.rb
takeltau-0.44.41 lib/takeltau/info/status/gopass.rb
takeltau-0.44.39 lib/takeltau/info/status/gopass.rb
takeltau-0.44.37 lib/takeltau/info/status/gopass.rb
takeltau-0.44.36 lib/takeltau/info/status/gopass.rb
takeltau-0.44.35 lib/takeltau/info/status/gopass.rb
takeltau-0.44.29 lib/takeltau/info/status/gopass.rb
takeltau-0.44.27 lib/takeltau/info/status/gopass.rb
takeltau-0.44.24 lib/takeltau/info/status/gopass.rb
takeltau-0.44.23 lib/takeltau/info/status/gopass.rb
takeltau-0.44.19 lib/takeltau/info/status/gopass.rb
takeltau-0.44.18 lib/takeltau/info/status/gopass.rb
takeltau-0.44.15 lib/takeltau/info/status/gopass.rb