From d7b70643aa6e2881f5a058370dfd138d203beb5b Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Wed, 20 Mar 2024 17:19:15 -0300 Subject: [PATCH] Remove stale references to 'FFI' module. --- lib/bsd/control.rb | 3 --- lib/bsd/control/feature.rb | 23 ++++++++++------------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/lib/bsd/control.rb b/lib/bsd/control.rb index 623cc1e..eb57d44 100644 --- a/lib/bsd/control.rb +++ b/lib/bsd/control.rb @@ -42,7 +42,4 @@ module BSD::Control feature = available_features.find { _1.name == name.to_s } feature ? feature : raise(Error, "feature '#{name}' wasn't found") end - - module FFI - end end diff --git a/lib/bsd/control/feature.rb b/lib/bsd/control/feature.rb index 49c9679..c5ae8e4 100644 --- a/lib/bsd/control/feature.rb +++ b/lib/bsd/control/feature.rb @@ -52,7 +52,7 @@ module BSD::Control # @return [Boolean] # Returns true on success. def sysdef!(path) - FFI.sysdef!(self, path) + # FIXME: implement. end # @endgroup @@ -102,20 +102,17 @@ module BSD::Control end ## - # @param [String] path - # The path to a file. + # @!method status(path) + # @param [String] path + # The path to a file. # - # @raise [SystemCallError] - # Might raise a number of Errno exceptions. + # @raise [SystemCallError] + # Might raise a number of Errno exceptions. # - # @return [Symbol] - # Returns the status of a feature for a given file. - # Status can be one of: `:conflict`, `:sysdef`, `:enabled`, `:disabled`. - def status(path) - FFI.status(self, path) - rescue Errno::ENOATTR - :sysdef - end + # @return [Symbol] + # Returns the status of a feature for a given file. + # Status could be: `:unknown`, `:enabled`, `:disabled`, + # `:sysdef`, or `:invalid`. # @endgroup