Module: Interfacets::Client::Assets
- Defined in:
- lib/interfacets/client/assets.rb
Defined Under Namespace
Modules: AutoloadHook Classes: Loader
Class Attribute Summary collapse
-
.loader ⇒ Object
readonly
Returns the value of attribute loader.
Class Method Summary collapse
Class Attribute Details
.loader ⇒ Object (readonly)
Returns the value of attribute loader.
45 46 47 |
# File 'lib/interfacets/client/assets.rb', line 45 def loader @loader end |
Class Method Details
.bootstrap(assets) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/interfacets/client/assets.rb', line 51 def bootstrap(assets) @loader = Loader.new(assets) Assets.logger.debug("bootstrapping") assets .fetch("scaffolding") .reject { _1.match(/SecureRandom/) } #total hack, bake this into image .join("\n") .then { TOP_LEVEL_BINDING.eval(_1) } Assets.logger.debug("done bootstrapping") assets.fetch("fs_map").each_key do |path| Assets.logger.debug("planned load: #{path}") @loader.load_path(path) end end |
.logger ⇒ Object
47 48 49 |
# File 'lib/interfacets/client/assets.rb', line 47 def logger $asset_logger ||= InterfacetsLogger.main end |