Module: Outputs

Defined in:
lib/canuby/util.rb

Overview

Output related methods

Class Method Summary collapse

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

.stage(project) ⇒ Object

Returns a list of the projects stage files



129
130
131
# File 'lib/canuby/util.rb', line 129

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