Method: CORL::Plugin::Configuration#attach
- Defined in:
- lib/core/plugin/configuration.rb
#attach(type, name, data, options = {}) ⇒ Object
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/core/plugin/configuration.rb', line 226 def attach(type, name, data, = {}) method_config = Config.ensure() new_location = nil if can_persist? if extension_check(:attach, { :config => method_config }) logger.info("Attaching data to source configuration") new_location = yield(method_config) if block_given? end else logger.warn("Can not attach data to source configuration") end new_location end |