Class: Origen::Application::PluginsManager

Inherits:
Object
  • Object
show all
Defined in:
lib/origen/application/plugins_manager.rb

Overview

This module is deprecated and is replaced by Origen::Application::Plugins

Instance Method Summary collapse

Instance Method Details

#defaultObject

Returns the current plugin instance currently set as the default plugin, otherwise nil



36
37
38
39
# 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) ⇒ Object

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.



29
30
31
32
# 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

#nameObject

Returns the current plugin name, equivalent to calling current.name



12
13
14
15
16
17
# 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) ⇒ Object

Sets the given plugin as the temporary current plugin, this will last until changed or the end of the current Origen thread



21
22
23
24
# 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