class Origen::Application::PluginsManager
This module is deprecated and is replaced by Origen::Application::Plugins
Public Instance Methods
default()
click to toggle source
Returns the current plugin instance currently set as the default plugin, otherwise nil
# File lib/origen/application/plugins_manager.rb, line 36 def default Origen.deprecated 'Origen.current_plugin.default is deprecated, use Origen.app.plugins.current instead' Origen.app.plugins.current end
default=(plugin_name)
click to toggle source
Same as temporary= except it will be remembered in the next Origen
thread. Setting this will also clear any temporary assignment that is currently in effect.
# File lib/origen/application/plugins_manager.rb, line 29 def default=(plugin_name) Origen.deprecated 'Origen.current_plugin.default= is deprecated, use Origen.app.plugins.current= instead' Origen.app.plugins.current = plugin_name end
name()
click to toggle source
Returns the current plugin name, equivalent to calling current.name
# File lib/origen/application/plugins_manager.rb, line 12 def name Origen.deprecated 'Origen.current_plugin.name is deprecated, use Origen.app.plugins.name instead' if Origen.app.plugins.current Origen.app.plugins.current.name end end
temporary=(plugin_name)
click to toggle source
Sets the given plugin as the temporary current plugin, this will last until changed or the end of the current Origen
thread
# File lib/origen/application/plugins_manager.rb, line 21 def temporary=(plugin_name) Origen.deprecated 'Origen.current_plugin.temporary= is deprecated, use Origen.app.plugins.temporary= instead' Origen.app.plugins.temporary = plugin_name end