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

Version Path
reveal-ck-4.0.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.9.2 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.9.1 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.9.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.8.1 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.8.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.7.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.6.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.5.1 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.5.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.4.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.3.1 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.3.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.2.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.1.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.0.1 lib/reveal-ck/builders/user_files.rb
reveal-ck-3.0.0 lib/reveal-ck/builders/user_files.rb
reveal-ck-0.6.2 lib/reveal-ck/builders/user_files.rb
reveal-ck-0.6.1 lib/reveal-ck/builders/user_files.rb
reveal-ck-0.6.0 lib/reveal-ck/builders/user_files.rb