Module: Outputs

Defined in:
lib/canuby/outputs.rb

Overview

Output related methods

Class Method Summary collapse

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

.stage(project) ⇒ Object

Returns a list of the projects stage files



33
34
35
# File 'lib/canuby/outputs.rb', line 33

def self.stage(project)
  const_get(project).outputs.map { |f| File.join(Paths.stage_dir, f) }
end