class DependencyProject

Attributes

scope[R]

Public Class Methods

new(project, options) click to toggle source
# File lib/simple-make/dependency_project.rb, line 4
def initialize project, options
  @project = project
  @relative_path = options[:relative_path]
  @scope = options[:scope] || :compile
end

Public Instance Methods

export_search_path_flag() click to toggle source
# File lib/simple-make/dependency_project.rb, line 22
def export_search_path_flag
  @project.prod_time_search_path_flag
end
generate_make_file() click to toggle source
# File lib/simple-make/dependency_project.rb, line 30
def generate_make_file
  @project.generate_make_file
end
output_path() click to toggle source
# File lib/simple-make/dependency_project.rb, line 26
def output_path
  "#{@relative_path}/#{@project.output_path}/*"
end
package_command() click to toggle source
# File lib/simple-make/dependency_project.rb, line 10
def package_command
  make_command("package")
end
package_file() click to toggle source
# File lib/simple-make/dependency_project.rb, line 18
def package_file
  "#{@relative_path}/#{@project.package_file}"
end
test_command() click to toggle source
# File lib/simple-make/dependency_project.rb, line 14
def test_command
  make_command("test")
end

Private Instance Methods

make_command(string) click to toggle source
# File lib/simple-make/dependency_project.rb, line 35
def make_command(string)
  "make -C #{@relative_path} #{string}"
end