Sha256: a5db2de40a2329a7814501cb402bb147af9be8b942985776d9ea4da4aee3eb64

Contents?: true

Size: 684 Bytes

Versions: 3

Compression:

Stored size: 684 Bytes

Contents

require 'origen'
<% if @type == :plugin -%>
require_relative '../config/application.rb'     
<% end -%>
module <%= @namespace %>

  # Load all files in the lib directory via a wildcard, if your project becomes
  # large or load order dependencies start to creep in then you may need to
  # start taking control of this manually as described above.
  # 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 up front
  # you can do that one manually and the let the wildcard take care of the rest.
  Dir.glob("#{File.dirname(__FILE__)}/**/*.rb").sort.each do |file| 
    require file
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
origen_app_generators-0.1.0 templates/app_generators/application/lib/module.rb
origen_app_generators-0.0.3 templates/app_generators/application/lib/module.rb
origen_app_generators-0.0.2 templates/app_generators/application/lib/module.rb