class Sanction::Blacklist::List

Public Instance Methods

allowed_ids() click to toggle source
# File lib/sanction/blacklist/list.rb, line 5
def allowed_ids
  []
end
blacklist?() click to toggle source
# File lib/sanction/blacklist/list.rb, line 16
def blacklist?
  true
end
denied_ids() click to toggle source
# File lib/sanction/blacklist/list.rb, line 24
def denied_ids
  entries.map {|x| x.id}
end
null_node_class() click to toggle source
# File lib/sanction/blacklist/list.rb, line 28
def null_node_class
  Sanction::Blacklist::NullNode
end
permitted?() click to toggle source
# File lib/sanction/blacklist/list.rb, line 9
def permitted?
  return false if wildcard_resource?
  return false if resources.include?(@key)
  return true if ids_blank?
  true
end
whitelist?() click to toggle source
# File lib/sanction/blacklist/list.rb, line 20
def whitelist?
  false
end