Skip to content

Commit

Permalink
Rename term to unsupported for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Jul 2, 2020
1 parent 1d55261 commit c3275af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/vmdb/permission_stores.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit c3275af

Please sign in to comment.