Class: DependencyProject

Inherits:
Object
  • Object
show all
Defined in:
lib/simple-make/dependency_project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project, options) ⇒ DependencyProject

Returns a new instance of DependencyProject.



4
5
6
7
8
# 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

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



2
3
4
# File 'lib/simple-make/dependency_project.rb', line 2

def scope
  @scope
end

Instance Method Details

#export_search_path_flagObject



22
23
24
# File 'lib/simple-make/dependency_project.rb', line 22

def export_search_path_flag
  @project.prod_time_search_path_flag
end

#generate_make_fileObject



30
31
32
# File 'lib/simple-make/dependency_project.rb', line 30

def generate_make_file
  @project.generate_make_file
end

#output_pathObject



26
27
28
# File 'lib/simple-make/dependency_project.rb', line 26

def output_path
  "#{@relative_path}/#{@project.output_path}/*"
end

#package_commandObject



10
11
12
# File 'lib/simple-make/dependency_project.rb', line 10

def package_command
  make_command("package")
end

#package_fileObject



18
19
20
# File 'lib/simple-make/dependency_project.rb', line 18

def package_file
  "#{@relative_path}/#{@project.package_file}"
end

#test_commandObject



14
15
16
# File 'lib/simple-make/dependency_project.rb', line 14

def test_command
  make_command("test")
end