Class: Shenandoah::Buildr::Locator

Inherits:
DefaultLocator show all
Defined in:
lib/shenandoah/buildr/locator.rb

Instance Attribute Summary

Attributes inherited from DefaultLocator

#main_path, #spec_path, #tmp_path

Instance Method Summary collapse

Methods inherited from DefaultLocator

#spec_files

Constructor Details

#initialize(project) ⇒ Locator

Returns a new instance of Locator.



6
7
8
9
10
11
12
13
# File 'lib/shenandoah/buildr/locator.rb', line 6

def initialize(project)
  super(
    :main_path => project.test.options[:main_path] ||
                  project.path_to(:source, :main, :javascript),
    :spec_path => project.path_to(:source, :spec, :javascript),
    :tmp_path => project.path_to(:target, :shenandoah)
  )
end