Class: Buildr::Assets::AssetsTask
- Inherits:
-
Rake::FileTask
- Object
- Rake::FileTask
- Buildr::Assets::AssetsTask
- 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
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
-
#paths ⇒ Object
The list of input paths to add to output directory.
Methods inherited from Rake::FileTask
Instance Attribute Details
#project ⇒ Object
Returns the value of attribute project.
24 25 26 |
# File 'lib/buildr/core/assets.rb', line 24 def project @project end |
Instance Method Details
#paths ⇒ Object
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 |