bin/check-all-gpg-keys-for-expiry.rb
# Return false with error message and its level if GPG executable binary file or its
# home directory does not exist otherwise return true
Return false with error message and its level if GPG executable binary file or its
home directory does not exist otherwise return true
Return false with error message and its level if GPG executable binary file or its home directory does not exist otherwise return true
def validate_gpg_and_home_directory
    unless File.exist?(config[:gpg])
      return false, 'GPG executable binary file [' + config[:gpg] + '] does not exist.', 2
    end
    unless File.exist?(config[:home_directory])
      return false, 'GPG home directory [' + config[:home_directory] + '] does not exist.', 2
    end
    [true, '', 0]
  end
def validate_gpg_and_home_directory unless File . exist? ( config [ :gpg ] ) return false , 'GPG executable binary file [' + config [ :gpg ] + '] does not exist.' , 2 end unless File . exist? ( config [ :home_directory ] ) return false , 'GPG home directory [' + config [ :home_directory ] + '] does not exist.' , 2 end [ true , '' , 0 ] end
Return false with error message and its level if GPG executable binary file or its
home directory does not exist otherwise return true
Return false with error message and its level if GPG executable binary file or its home directory does not exist otherwise return true