forked from ferventcoder/developwithpassion.bdd
-
Notifications
You must be signed in to change notification settings - Fork 1
/
local_properties.rb.customize
32 lines (29 loc) · 1.5 KB
/
local_properties.rb.customize
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require "project.rb"
class LocalSettings
attr_reader :settings
def initialize
@settings = {
:app_config_template => "app.config.xp.template" ,
#app_config_template = "app.config.vista.template" ;
:osql_connectionstring => "-E",
:path_to_runtime_log4net_config => "artifacts\log4net.config.xml",
:initial_catalog => "#{Project.name}",
:database_provider => "System.Data.SqlClient" ,
:database_path => "C:\\databases" ,
:log_file_name => "#{Project.name}_log.txt",
:log_level => "DEBUG",
:xunit_report_file_dir => "artifacts" ,
:xunit_report_file_name => "test_report",
:xunit_report_type => "text",
:xunit_show_test_report => true,
:debug => "TRUE"
}
@settings[:xunit_report_file_name_with_extension] = "#{@settings[:xunit_report_file_name]}.#{@settings[:xunit_report_type]}"
@settings[:sql_tools_path] = File.join(ENV['SystemDrive'],'program files','microsoft sql server','100','tools','binn')
@settings[:osql_exe] = File.join("#{@settings[:sql_tools_path]}",'osql.exe')
@settings[:config_connectionstring] = "data source=(local);Integrated Security=SSPI;Initial Catalog=#{@settings[:initial_catalog]}"
#@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")
@settings[:asp_net_account] = "#{ENV["computername"]}\\ASPNet";
@settings[:db_account_sql] = "#{@settings[:asp_net_account]}', N'#{@settings[:asp_net_account]}'"
end
end