require 'subtrac/client' module Subtrac class Project attr_reader :display_name, :path, :client, :type, :template attr_accessor :svn_dir, :trac_dir def initialize(project_name,client_name,project_type) @display_name = project_name.gsub(/^[a-z]|\s+[a-z]/) { |a| a.upcase } @path = project_name.downcase @client = Client.new(client_name) @type = project_type @template = File.join(File.dirname(__FILE__), "project", project_type) end end end