Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 1143

Show
Ignore:
Timestamp:
04/11/05 10:57:23 (3 years ago)
Author:
noradio
Message:

Moved configurable constant assignment to environment.rb.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/cia/trunk/app/models/build.rb

    r1123 r1143  
    22 
    33class Build < ActiveRecord::Base 
    4   RAKE = "/usr/local/bin/rake" 
    54 
    65  belongs_to :project 
     
    2322  def make 
    2423    log "Making..." 
    25     [ `cd #{directory} && #{RAKE}`, ($?.exitstatus == 0) ] 
     24    [ `cd #{directory} && #{RAKE_PATH}`, ($?.exitstatus == 0) ] 
    2625  end 
    2726 
  • tools/cia/trunk/app/models/notifier.rb

    r1120 r1143  
    44    @body       = { "build" => build } 
    55    @recipients = build.project.email_addresses_to_be_notified 
    6     @from       = 'CIA <cia@rubyonrails.com>' 
     6    @from       = NOTIFIER_FROM_ADDRESS 
    77    @sent_on    = sent_at 
    88    @headers    = {} 
  • tools/cia/trunk/app/services/agent.rb

    r1119 r1143  
    11ENV['RAILS_ENV'] = nil 
    22class Agent 
    3   SVN_LOOK = "/usr/local/bin/svnlook" 
    43 
    54  attr_reader :builds 
     
    2726 
    2827  def changes 
    29     @changes ||= `#{SVN_LOOK} changed #{@repository}` 
     28    @changes ||= `#{SVN_LOOK_PATH} changed #{@repository}` 
    3029  end 
    3130end 
  • tools/cia/trunk/config/environment.rb

    r1114 r1143  
    7171 
    7272# Include your app's configuration here: 
     73 
     74RAKE_PATH             = '/usr/local/bin/rake' 
     75SVN_LOOK_PATH         = '/usr/local/bin/svnlook' 
     76NOTIFIER_FROM_ADDRESS = 'CIA <cia@rubyonrails.com>' 
  • tools/cia/trunk/README

    r1122 r1143  
    1818  .read db/sqlite.sql  # creates the necessary tables 
    1919 
     20== Adding projects 
     21 
     22When adding a project, +repository+ is the path to your local svn repository 
     23and +path+ is the path within the repository to the project you are adding.  
    2024 
    2125== The post-commit hook