Sha256: 0204f44805c4b8e3ad4a12b5c0f712c7a9124fb49aa2dabc7a021b316717c174
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
# encoding: UTF-8 require 'dump' module Dump # Helper for listing assets for dump module Assets SPLITTER = /[:,]/.freeze class << self def assets File.readlines(File.join(Dump.rails_root, 'config/assets')).map(&:strip).grep(/^[^#]/).join(':') end def glob_asset_children(asset, glob) path = File.expand_path(asset, Dump.rails_root) if path[0, Dump.rails_root.length] == Dump.rails_root # asset must be in rails root Dir[File.join(path, glob)] else [] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dump-1.2.0 | lib/dump/assets.rb |