Class: DependencyProject
- Inherits:
-
Object
- Object
- DependencyProject
- Defined in:
- lib/simple-make/dependency_project.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
- #export_search_path_flag ⇒ Object
- #generate_make_file ⇒ Object
-
#initialize(project, options) ⇒ DependencyProject
constructor
A new instance of DependencyProject.
- #output_path ⇒ Object
- #package_command ⇒ Object
- #package_file ⇒ Object
- #test_command ⇒ Object
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, @project = project @relative_path = [:relative_path] @scope = [:scope] || :compile end |
Instance Attribute Details
#scope ⇒ Object (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_flag ⇒ Object
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_file ⇒ Object
30 31 32 |
# File 'lib/simple-make/dependency_project.rb', line 30 def generate_make_file @project.generate_make_file end |
#output_path ⇒ Object
26 27 28 |
# File 'lib/simple-make/dependency_project.rb', line 26 def output_path "#{@relative_path}/#{@project.output_path}/*" end |
#package_command ⇒ Object
10 11 12 |
# File 'lib/simple-make/dependency_project.rb', line 10 def package_command make_command("package") end |
#package_file ⇒ Object
18 19 20 |
# File 'lib/simple-make/dependency_project.rb', line 18 def package_file "#{@relative_path}/#{@project.package_file}" end |
#test_command ⇒ Object
14 15 16 |
# File 'lib/simple-make/dependency_project.rb', line 14 def test_command make_command("test") end |