Class: ProjectFactory
- Inherits:
-
Object
- Object
- ProjectFactory
- Defined in:
- lib/simple-make/project_factory.rb
Class Method Summary collapse
Class Method Details
.create_from_relative_path(options) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/simple-make/project_factory.rb', line 4 def self.create_from_relative_path build_file_path = [:relative_path] + "/build.sm" raise "#{build_file_path} doesn't exist, cannot depend on project #{[:relative_path]}, abort!" if !File.exist? build_file_path project = Project.new workspace: File.absolute_path([:relative_path]) project.instance_eval(File.open(build_file_path).read) DependencyProject.new(project, ) end |