Class: Tinderbox::Build
- Inherits:
-
Struct
- Object
- Struct
- Tinderbox::Build
- Defined in:
- lib/tinderbox.rb,
lib/tinderbox/build.rb
Overview
A set of Build results.
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#log ⇒ Object
Returns the value of attribute log.
-
#successful ⇒ Object
Returns the value of attribute successful.
Instance Method Summary collapse
-
#submit(project_id, target_id, host, username, password) ⇒ Object
Submit a Build to
host
asusername
usingpassword
using Firebrigade::API.
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration
31 32 33 |
# File 'lib/tinderbox.rb', line 31 def duration @duration end |
#log ⇒ Object
Returns the value of attribute log
31 32 33 |
# File 'lib/tinderbox.rb', line 31 def log @log end |
#successful ⇒ Object
Returns the value of attribute successful
31 32 33 |
# File 'lib/tinderbox.rb', line 31 def successful @successful end |
Instance Method Details
#submit(project_id, target_id, host, username, password) ⇒ Object
Submit a Build to host
as username
using password
using Firebrigade::API. The Build will be added to project project_id
and target target_id
.
16 17 18 19 |
# File 'lib/tinderbox/build.rb', line 16 def submit(project_id, target_id, host, username, password) fa = Firebrigade::API.new host, username, password fa.add_build project_id, target_id, successful, duration, log end |