mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
14 lines
442 B
Ruby
14 lines
442 B
Ruby
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
class SecureMailing::PGP::Tool
|
|
include SecureMailing::PGP::Tool::Key
|
|
include SecureMailing::PGP::Tool::Data
|
|
include SecureMailing::PGP::Tool::Parse
|
|
|
|
def self.version
|
|
stdout, stderr, status = Open3.capture3({ 'LC_ALL' => 'C' }, 'gpg', '--version')
|
|
raise Errno::EHWPOISON, stderr if !status.success?
|
|
|
|
stdout.split("\n").first.split.last
|
|
end
|
|
end
|