Sha256: c58a600244404f348053cd7ee199a377b3387db979cc577a72d7e9f44b0537de
Contents?: true
Size: 799 Bytes
Versions: 26
Compression:
Stored size: 799 Bytes
Contents
require 'rake' module RevealCK module Builders # Given a location to a user's files, this class knows which files # should be included. class UserFiles include Retrieve attr_reader :dir def initialize(args) @dir = retrieve(:dir, args) end def files [] .concat(css) .concat(js) .concat(plugin) .concat(media) .concat(images) end private def css FileList["#{dir}/css/**/*"] end def js FileList["#{dir}/js/**/*"] end def plugin FileList["#{dir}/plugin/**/*"] end def media FileList["#{dir}/media/**/*"] end def images FileList["#{dir}/images/**/*"] end end end end
Version data entries
26 entries across 26 versions & 1 rubygems