Class: GroundControl::Builder
- Inherits:
-
Object
- Object
- GroundControl::Builder
- Defined in:
- lib/groundcontrol/builder.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(project_name, config) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(project_name, config) ⇒ Builder
Returns a new instance of Builder.
11 12 13 14 15 16 17 18 19 |
# File 'lib/groundcontrol/builder.rb', line 11 def initialize(project_name, config) @project_name = project_name @config = config @workspace = File.(File.join("builds", project_name)) puts "Workspace: #{@workspace}" @build_directory = File.join(@workspace, "build") @reports_directory = File.join(@workspace, "reports") @git_url = @config['git'] end |
Instance Method Details
#build ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/groundcontrol/builder.rb', line 21 def build create_workspace() clone_repository() prepare_build_environment() test_report = run_tests_and_report() notify_campfire_of_build_result(test_report, @project_name, @repository) return test_report end |