Mike McQuaid 2cbce1fbf0 Add more deprecations, disable some existing ones.
Add more `odeprecated` calls to places that have been deprecated for a
while in the wild and move some of the existing `odeprecated` calls to
be `odisabled` to allow deleting the compatibility code.
2018-01-09 19:52:34 +00:00

28 lines
449 B
Ruby

require "utils"
module Gpg
module_function
def executable
odeprecated "Gpg.executable", 'which "gpg"'
which "gpg"
end
def available?
odeprecated "Gpg.available?", 'which "gpg"'
File.executable?(executable.to_s)
end
def create_test_key(_)
odeprecated "Gpg.create_test_key"
end
def cleanup_test_processes!
odeprecated "Gpg.cleanup_test_processes!"
end
def test(_)
odeprecated "Gpg.test"
end
end