Class: Tinderbox::Build

Inherits:
Struct
  • Object
show all
Defined in:
lib/tinderbox.rb,
lib/tinderbox/build.rb

Overview

A set of Build results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#durationObject

Returns the value of attribute duration

Returns:

  • (Object)

    the current value of duration



31
32
33
# File 'lib/tinderbox.rb', line 31

def duration
  @duration
end

#logObject

Returns the value of attribute log

Returns:

  • (Object)

    the current value of log



31
32
33
# File 'lib/tinderbox.rb', line 31

def log
  @log
end

#successfulObject

Returns the value of attribute successful

Returns:

  • (Object)

    the current value of 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