Class: Buildr::Assets::AssetsTask

Inherits:
Rake::FileTask show all
Defined in:
lib/buildr/core/assets.rb

Overview

The base assets task that is responsible for collecting all of the assets into a single output directory

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Rake::FileTask

#contain?, #empty?, #exist?

Instance Attribute Details

#projectObject

Returns the value of attribute project.



24
25
26
# File 'lib/buildr/core/assets.rb', line 24

def project
  @project
end

Instance Method Details

#pathsObject

The list of input paths to add to output directory



31
32
33
34
35
36
37
# File 'lib/buildr/core/assets.rb', line 31

def paths
  unless @paths
    @paths = []
    @paths << project._(:source, :main, :assets) if File.exist?(project._(:source, :main, :assets))
  end
  @paths
end