lib/origen/application.rb in origen-0.7.4 vs lib/origen/application.rb in origen-0.7.5
- old
+ new
@@ -473,11 +473,15 @@
def gem_name
(Origen.app.config.gem_name || name).to_s.underscore.symbolize
end
def plugins
- @plugins ||= Plugins.new
+ if Origen.app_loaded?
+ @plugins ||= Plugins.new
+ else
+ Plugins.new
+ end
end
def plugins_manager
Origen.deprecated 'Origen.app.plugins_manager and Origen.app.current_plugin are deprecated, use Origen.app.plugins instead'
plugins
@@ -671,13 +675,9 @@
if @load_event
dynamic_resource(:pin_names, {})
else
@transient_resources[:pin_names] ||= {}
end
- end
-
- def load_console
- load_target!
end
def load_target!(options = {})
options = {
force_debug: false