Module: Outputs
- Defined in:
- lib/canuby/util.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
119 120 121 122 123 124 125 126 |
# File 'lib/canuby/util.rb', line 119 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 |