Changeset 164

Show
Ignore:
Timestamp:
02/12/08 11:04:15 (6 months ago)
Author:
glenn
Message:

Load raker_projects.yml via erb, to remove hardcoded paths.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • incubator/director/trunk/lib/raker/raker.rb

    r87 r164  
    33require 'director_utils' 
    44require 'logger' 
     5require 'erb' 
    56 
    67class Raker 
     
    8182   
    8283  def get_projects_for path 
    83     YAML.load(File.read(path)) if(File.exists?(path)) 
     84    YAML.load(erb_render(File.read(path))) if(File.exists?(path)) 
     85  end 
     86   
     87  def erb_render(content) 
     88    ERB.new(content).result 
    8489  end 
    8590   
  • incubator/director/trunk/pkg/director-0.3/lib/raker/raker.rb

    r87 r164  
    33require 'director_utils' 
    44require 'logger' 
     5require 'erb' 
    56 
    67class Raker 
     
    8182   
    8283  def get_projects_for path 
    83     YAML.load(File.read(path)) if(File.exists?(path)) 
     84    YAML.load(erb_render(File.read(path))) if(File.exists?(path)) 
     85  end 
     86   
     87  def erb_render(content) 
     88    ERB.new(content).result 
    8489  end 
    8590   
  • incubator/director/trunk/pkg/director-0.3/Rakefile

    r87 r164  
    9999 
    100100  # --- Requirements 
    101   s.required_ruby_version = '>= 1.8.1
     101  s.required_ruby_version = '>= 1.8.6
    102102  s.requirements << 'To use director on Windows, you should install the "win32-process" gem.' 
    103103  # I don't want to actually require these as dependencies, because I can't 
  • incubator/director/trunk/Rakefile

    r87 r164  
    9999 
    100100  # --- Requirements 
    101   s.required_ruby_version = '>= 1.8.1
     101  s.required_ruby_version = '>= 1.8.6
    102102  s.requirements << 'To use director on Windows, you should install the "win32-process" gem.' 
    103103  # I don't want to actually require these as dependencies, because I can't