Sha256: 8efacfce26273824be8fb390802d0f5b195c015a9648e3539ce17d6285704d1a

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/environment'

loop do
  
  Project.all.each do |project|
    begin 
      ENV.delete 'RAILS_ENV'
      project.run_tasks! unless project.building?
    rescue Project::ProjectLockedException
      puts "#{project.name} is building"
    rescue => e
      puts e.inspect
      puts e.backtrace*"\n"
      
    end
  end
  
  sleep 10
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ginst-2009.12.8 script/builder.rb
ginst-2009.11.24 script/builder.rb
ginst-2009.11.23 script/builder.rb