2016-08-10 04:50:59 +01:00
|
|
|
require "utils"
|
|
|
|
|
2017-12-29 16:19:09 +00:00
|
|
|
module Gpg
|
2017-12-23 16:52:50 +00:00
|
|
|
module_function
|
2016-08-10 04:50:59 +01:00
|
|
|
|
2017-12-23 16:52:50 +00:00
|
|
|
def executable
|
2018-01-09 19:52:34 +00:00
|
|
|
odeprecated "Gpg.executable", 'which "gpg"'
|
2017-12-23 16:52:50 +00:00
|
|
|
which "gpg"
|
2016-08-10 16:46:58 +01:00
|
|
|
end
|
|
|
|
|
2017-12-23 16:52:50 +00:00
|
|
|
def available?
|
2018-01-09 19:52:34 +00:00
|
|
|
odeprecated "Gpg.available?", 'which "gpg"'
|
2017-10-22 02:48:38 +01:00
|
|
|
File.executable?(executable.to_s)
|
2016-08-10 04:50:59 +01:00
|
|
|
end
|
|
|
|
|
2018-01-09 19:52:34 +00:00
|
|
|
def create_test_key(_)
|
|
|
|
odeprecated "Gpg.create_test_key"
|
2016-08-10 04:50:59 +01:00
|
|
|
end
|
2017-08-28 16:51:58 +01:00
|
|
|
|
2017-12-23 16:52:50 +00:00
|
|
|
def cleanup_test_processes!
|
2018-01-09 19:52:34 +00:00
|
|
|
odeprecated "Gpg.cleanup_test_processes!"
|
2017-08-28 16:51:58 +01:00
|
|
|
end
|
2017-09-01 01:50:26 +01:00
|
|
|
|
2018-01-09 19:52:34 +00:00
|
|
|
def test(_)
|
|
|
|
odeprecated "Gpg.test"
|
2017-09-01 01:50:26 +01:00
|
|
|
end
|
2016-08-10 04:50:59 +01:00
|
|
|
end
|