mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

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.
28 lines
449 B
Ruby
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
|