Sha256: 9a77c62a66bf1c3450afb3b7683464441a70e24b6eedbb87bf65d917e3a65281
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
IRONNAILS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) # Helper method for file references. # root_path("config", "settings.yml") def root_path(*args) File.join(IRONNAILS_ROOT, *args) end # Returns the full path to the assets folder along with any given additions # assets_path("images") def assets_path(*args) root_path('assets', *args) end # Returns the full path to the assets folder along with any given additions # assets_path("images") def skins_path(*args) assets_path('skins', *args) end begin require 'ironnails' rescue LoadError => le require 'rubygems' require 'ironnails' end module <%= @class_name %> class Application < WpfApplication # Attempts to require all dependencies with bundler, if this fails, bundle and then try again def bundler_require_dependencies(environment='default') require 'bundler' Bundler.setup(environment.to_sym) Bundler.require(environment.to_sym) rescue LoadError => e puts "Bundler must be run to resolve dependencies!" system("cd #{ROOT_DIR}; bundle install") puts "Retrying with dependencies resolved..." retry end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ironnails-0.0.3 | generators/base_app/config/boot.rb.tt |