Sha256: 4bc48ead1542cc7461889540fcb8fd73be27e77432d857f2232d097f68eed1fa

Contents?: true

Size: 878 Bytes

Versions: 21

Compression:

Stored size: 878 Bytes

Contents

require 'origen'
<% if @type == :plugin -%>
require_relative '../config/application.rb'
<% end -%>
module <%= @namespace %>
<% if @type == :plugin -%>
  # THIS FILE SHOULD ONLY BE USED TO LOAD RUNTIME DEPENDENCIES
  # If this plugin has any development dependencies (e.g. dummy DUT or other models that are only used
  # for testing), then these should be loaded from config/boot.rb

<% end -%>
  # Example of how to explicitly require a file
  # require "<%= @name %>/my_file"

  # Load all files in the lib/<%= @name %> directory.
  # Note that there is no problem from requiring a file twice (Ruby will ignore
  # the second require), so if you have a file that must be required first, then
  # explicitly require it up above and then let this take care of the rest.
  Dir.glob("#{File.dirname(__FILE__)}/<%= @name %>/**/*.rb").sort.each do |file|
    require file
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
origen-0.44.0 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.43.0 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.42.2 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.42.1 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.42.0 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.41.2 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.41.1 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.41.0 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.40.2 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.40.1 origen_app_generators/templates/app_generators/application/lib/module.rb
origen-0.40.0 origen_app_generators/templates/app_generators/application/lib/module.rb
origen_app_generators-1.2.0 templates/app_generators/application/lib/module.rb
origen_app_generators-1.1.4 templates/app_generators/application/lib/module.rb
origen_app_generators-1.1.3 templates/app_generators/application/lib/module.rb
origen_app_generators-1.1.2 templates/app_generators/application/lib/module.rb
origen_app_generators-1.1.1 templates/app_generators/application/lib/module.rb
origen_app_generators-1.1.0 templates/app_generators/application/lib/module.rb
origen_app_generators-1.0.1 templates/app_generators/application/lib/module.rb
origen_app_generators-1.0.0 templates/app_generators/application/lib/module.rb
origen_app_generators-0.4.0 templates/app_generators/application/lib/module.rb