Module: Outputs
- Defined in:
- lib/canuby/outputs.rb
Overview
Output related methods
Class Method Summary collapse
-
.build(project) ⇒ Object
Returns a list of the projects output files.
-
.stage(project) ⇒ Object
Returns a list of the projects stage files.
Class Method Details
.build(project) ⇒ Object
Returns a list of the projects output files
23 24 25 26 27 28 29 30 |
# File 'lib/canuby/outputs.rb', line 23 def self.build(project) output_dir = const_get(project).output_dir if output_dir const_get(project).outputs.map { |f| File.join(Paths.build_dir(project), output_dir, ENV['rel_type'], f) } else const_get(project).outputs.map { |f| File.join(Paths.build_dir(project), ENV['rel_type'], f) } end end |