Sha256: 07d8c0f4ddaf30c301c69eb7f14c26cca7b7f660e1258a876224d2e6cf79d9d4

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

class BuildController < ApplicationController

  def status
  end

  def stdout
    load_build
    send_log(@build.stdout)
  end

  def stderr
    load_build
    send_log(@build.stderr)
  end

  def tests
  end

private

  def send_log(file)
    # see application.rb for :no_disposition
    send_file(file, :stream => true, :type => "text/plain", :no_disposition => true)
  end

  def load_build
    load_project
    changeset_identifier = @params["changeset"].to_identifier
    build_time = @params["build"].to_identifier
    @build = @project.build(changeset_identifier, build_time)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
damagecontrol-0.5.0.1391 app/controllers/build_controller.rb
damagecontrol-0.5.0.1392 app/controllers/build_controller.rb
damagecontrol-0.5.0.1393 app/controllers/build_controller.rb
damagecontrol-0.5.0.1404 app/controllers/build_controller.rb