Sha256: f8b7b6124af8cccddc19cebaa207a276b098c82431f4b03970b111a557f59439

Contents?: true

Size: 878 Bytes

Versions: 5

Compression:

Stored size: 878 Bytes

Contents

require 'rscm/changes'
require 'damagecontrol/directories'

module DamageControl
  module Visitor

    # Visitor that executes a build for each visited changeset.
    # TODO: THIS CLASS IS NOT USED YET - FINISH IT. PASS A BLOCK TO CTOR.
    class BuildExecutor
      # Creates a new BuildExecutor that will build the project for
      # each visited changeset. The +description+ will be persisted
      # with the build information to record what triggered the build.
      #
      def initialize(project, description)
        @project = project
      end

      def visit_changesets(changesets)
      end

      def visit_changeset(changeset)
        Log.info "Checking out changeset #{changeset.id} for #{@project.name}"
        project.checkout(changeset.id)
        Log.info "Building #{@project.name}"
      end

      def visit_change(change)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
damagecontrol-0.5.0.1392 lib/damagecontrol/visitor/build_executor.rb
damagecontrol-0.5.0.1391 lib/damagecontrol/visitor/build_executor.rb
damagecontrol-0.5.0.1393 lib/damagecontrol/visitor/build_executor.rb
damagecontrol-0.5.0.1404 lib/damagecontrol/visitor/build_executor.rb
damagecontrol-0.5.0 lib/damagecontrol/visitor/build_executor.rb