Sha256: 8c156777cdc6f55cb0e8e824e73141df64a3eaf733582cd6e4eb837ba7c0aefa

Contents?: true

Size: 1.83 KB

Versions: 187

Compression:

Stored size: 1.83 KB

Contents

module Origen
  class Application
    # This module is deprecated and is replaced by Origen::Application::Plugins
    class PluginsManager
      # ***********************************************************************
      # ***********************************************************************
      # Don't add anything new here, use origen/application/plugins.rb instead
      # ***********************************************************************
      # ***********************************************************************

      # Returns the current plugin name, equivalent to calling current.name
      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

      # Sets the given plugin as the temporary current plugin, this will last until
      # changed or the end of the current Origen thread
      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

      # 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.
      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

      # Returns the current plugin instance currently set as the default plugin,
      # otherwise nil
      def default
        Origen.deprecated 'Origen.current_plugin.default is deprecated, use Origen.app.plugins.current instead'
        Origen.app.plugins.current
      end
    end
  end
end

Version data entries

187 entries across 187 versions & 1 rubygems

Version Path
origen-0.33.0 lib/origen/application/plugins_manager.rb
origen-0.32.1 lib/origen/application/plugins_manager.rb
origen-0.32.0 lib/origen/application/plugins_manager.rb
origen-0.31.0 lib/origen/application/plugins_manager.rb
origen-0.30.0 lib/origen/application/plugins_manager.rb
origen-0.29.0 lib/origen/application/plugins_manager.rb
origen-0.28.2 lib/origen/application/plugins_manager.rb
origen-0.28.1 lib/origen/application/plugins_manager.rb
origen-0.28.0 lib/origen/application/plugins_manager.rb
origen-0.27.0 lib/origen/application/plugins_manager.rb
origen-0.26.0 lib/origen/application/plugins_manager.rb
origen-0.25.1 lib/origen/application/plugins_manager.rb
origen-0.25.0 lib/origen/application/plugins_manager.rb
origen-0.24.0 lib/origen/application/plugins_manager.rb
origen-0.23.0 lib/origen/application/plugins_manager.rb
origen-0.22.0 lib/origen/application/plugins_manager.rb
origen-0.21.0 lib/origen/application/plugins_manager.rb
origen-0.20.3 lib/origen/application/plugins_manager.rb
origen-0.20.2 lib/origen/application/plugins_manager.rb
origen-0.20.1 lib/origen/application/plugins_manager.rb