Remove stale references to 'FFI' module.
This commit is contained in:
parent
9f6eb714dc
commit
d7b70643aa
2 changed files with 10 additions and 16 deletions
|
@ -42,7 +42,4 @@ module BSD::Control
|
||||||
feature = available_features.find { _1.name == name.to_s }
|
feature = available_features.find { _1.name == name.to_s }
|
||||||
feature ? feature : raise(Error, "feature '#{name}' wasn't found")
|
feature ? feature : raise(Error, "feature '#{name}' wasn't found")
|
||||||
end
|
end
|
||||||
|
|
||||||
module FFI
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -52,7 +52,7 @@ module BSD::Control
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
# Returns true on success.
|
# Returns true on success.
|
||||||
def sysdef!(path)
|
def sysdef!(path)
|
||||||
FFI.sysdef!(self, path)
|
# FIXME: implement.
|
||||||
end
|
end
|
||||||
|
|
||||||
# @endgroup
|
# @endgroup
|
||||||
|
@ -102,6 +102,7 @@ module BSD::Control
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
# @!method status(path)
|
||||||
# @param [String] path
|
# @param [String] path
|
||||||
# The path to a file.
|
# The path to a file.
|
||||||
#
|
#
|
||||||
|
@ -110,12 +111,8 @@ module BSD::Control
|
||||||
#
|
#
|
||||||
# @return [Symbol]
|
# @return [Symbol]
|
||||||
# Returns the status of a feature for a given file.
|
# Returns the status of a feature for a given file.
|
||||||
# Status can be one of: `:conflict`, `:sysdef`, `:enabled`, `:disabled`.
|
# Status could be: `:unknown`, `:enabled`, `:disabled`,
|
||||||
def status(path)
|
# `:sysdef`, or `:invalid`.
|
||||||
FFI.status(self, path)
|
|
||||||
rescue Errno::ENOATTR
|
|
||||||
:sysdef
|
|
||||||
end
|
|
||||||
|
|
||||||
# @endgroup
|
# @endgroup
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue