Add sysdef!
This commit is contained in:
parent
d66df7f0b8
commit
507ef2aa4b
1 changed files with 16 additions and 0 deletions
|
@ -37,6 +37,21 @@ module BSD::Control
|
|||
set!(path, BSD::Control::Disable)
|
||||
end
|
||||
|
||||
##
|
||||
# Restore system defaults.
|
||||
#
|
||||
# @param [String] path
|
||||
# The path to an executable.
|
||||
#
|
||||
# @raise [BSD::Control::Error]
|
||||
# When the operation fails.
|
||||
#
|
||||
# @return [Boolean]
|
||||
# Returns true on success.
|
||||
def sysdef!(path)
|
||||
set!(path, BSD::Control::SysDef)
|
||||
end
|
||||
|
||||
##
|
||||
# @group Predicates
|
||||
|
||||
|
@ -104,5 +119,6 @@ module BSD::Control
|
|||
end
|
||||
|
||||
# @endgroup
|
||||
private :set!
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue