main
 1require "project_name.rb"
 2
 3class LocalSettings 
 4  attr_reader :settings
 5 def initialize
 6  @settings = {
 7  	:app_config_template => 'app.config.xp.template' ,
 8  	#:app_config_template => 'app.config.vista.template' ,
 9  	:path_to_runtime_log4net_config => 'artifacts\log4net.config.xml',
10  	:initial_catalog => "#{Project.name}",
11  	:database_provider => 'System.Data.SqlClient' ,
12  	:database_path => 'C:\databases' ,
13  	:asp_net_worker_process => 'aspnet_wp.exe',
14  	:log_file_name => "#{Project.name}Log.txt",
15  	:log_level => 'DEBUG',
16  	:xunit_report_file_dir => 'artifacts' ,
17  	:xunit_report_file_name => 'test_report',
18  	:xunit_report_type => 'text',
19  	:xunit_show_test_report => true,
20  	:debug => true,
21  }
22@settings[:xunit_report_file_name_with_extension] = "#{@settings[:xunit_report_file_name]}.#{@settings[:xunit_report_type]}"
23@settings[:asp_net_account] = "#{ENV["computername"]}\\ASPNet";
24#@settings[:db_account_sql]= "#{@settings[:asp_net_account]} WITH PASSWORD=N'#{@settings[:asp_net_account]}', DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF")
25@settings[:db_account_sql] = "#{@settings[:asp_net_account]}', N'#{@settings[:asp_net_account]}'"
26
27#these settings may need to be changed to be specific to your local machine
28@settings[:osql_connectionstring] = '-E'
29@settings[:sql_tools_path] = File.join(ENV['SystemDrive'],'program files/microsoft sql server/100/tools/binn')
30@settings[:osql_exe] = File.join("#{@settings[:sql_tools_path]}",'osql.exe')
31@settings[:config_connectionstring] = "data source=(local);Integrated Security=SSPI;Initial Catalog=#{@settings[:initial_catalog]}"
32 end
33end