From c3275af40c00fd2a09ada3c8e6a4abe8719d950b Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Thu, 2 Jul 2020 08:48:28 -0400 Subject: [PATCH] Rename term to unsupported for clarity --- lib/vmdb/permission_stores.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/vmdb/permission_stores.rb b/lib/vmdb/permission_stores.rb index 1d3d50bfe03..5dc8e5b9a95 100644 --- a/lib/vmdb/permission_stores.rb +++ b/lib/vmdb/permission_stores.rb @@ -3,10 +3,10 @@ module Vmdb class PermissionStores def self.instance - @instance ||= new(blacklist) + @instance ||= new(unsupported) end - def self.blacklist + def self.unsupported permission_files.flat_map { |file| YAML.load_file(file) } end @@ -16,14 +16,14 @@ def self.blacklist .select(&:exist?) end - attr_reader :blacklist + attr_reader :unsupported - def initialize(blacklist) - @blacklist = blacklist + def initialize(unsupported) + @unsupported = unsupported end def can?(permission) - blacklist.exclude?(permission.to_s) + unsupported.exclude?(permission.to_s) end def supported_ems_type?(type)