7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/semian/adapter.rb', line 7
def semian_resource
@semian_resource ||= case semian_options
when false
UnprotectedResource.new(semian_identifier)
when nil
Semian.logger.info("Semian is not configured for #{self.class.name}: #{semian_identifier}")
UnprotectedResource.new(semian_identifier)
else
options = semian_options.dup
options.delete(:name)
options[:exceptions] ||= []
options[:exceptions] += resource_exceptions
::Semian.retrieve_or_register(semian_identifier, **options)
end
end
|