Class: BradyW::BaseConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/base_config.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.subclassesObject



3
4
5
6
# File 'lib/base_config.rb', line 3

def self.subclasses
  ObjectSpace.each_object(Class).select { |k| k.ancestors.include?(self) and (k != self) }
  .sort_by { |k| k.name }
end

Instance Method Details

#build_typeObject



69
70
71
# File 'lib/base_config.rb', line 69

def build_type
  :Debug
end

#db_connect_string_sqlauthObject



65
66
67
# File 'lib/base_config.rb', line 65

def db_connect_string_sqlauth
  "Data Source=@host@;Initial Catalog=@initialcatalog@;Persist Security Info=True;User ID=@user@;Password=@password@;Min Pool Size=20;Max Pool Size=500;Connection Timeout=15;"
end

#db_connect_string_winauthObject



61
62
63
# File 'lib/base_config.rb', line 61

def db_connect_string_winauth
  "Data Source=@host@;Initial Catalog=@initialcatalog@;Persist Security Info=True;Min Pool Size=20;Max Pool Size=500;Connection Timeout=15;Trusted_Connection=Yes"
end

#db_general_authmodeObject

winauth or sqlauth



33
34
35
# File 'lib/base_config.rb', line 33

def db_general_authmode
  :sqlauth
end

#db_general_passwordObject



41
42
43
# File 'lib/base_config.rb', line 41

def db_general_password
  "password"
end

#db_general_userObject



37
38
39
# File 'lib/base_config.rb', line 37

def db_general_user
  db_name
end

#db_hostnameObject



12
13
14
# File 'lib/base_config.rb', line 12

def db_hostname
  "localhost\\sqlexpress"
end

#db_nameObject



16
17
18
# File 'lib/base_config.rb', line 16

def db_name
  "@prefix@-@thismachinehostname@"
end

#db_object_creation_authmodeObject



20
21
22
# File 'lib/base_config.rb', line 20

def db_object_creation_authmode
  :winauth
end

#db_object_creation_passwordObject



28
29
30
# File 'lib/base_config.rb', line 28

def db_object_creation_password
  "password"
end

#db_object_creation_userObject



24
25
26
# File 'lib/base_config.rb', line 24

def db_object_creation_user
  "user"
end

#db_system_authmodeObject



45
46
47
# File 'lib/base_config.rb', line 45

def db_system_authmode
  :winauth
end

#db_system_datadirObject



57
58
59
# File 'lib/base_config.rb', line 57

def db_system_datadir
  "D:/sqlserverdata"
end

#db_system_passwordObject



53
54
55
# File 'lib/base_config.rb', line 53

def db_system_password
  "password"
end

#db_system_userObject



49
50
51
# File 'lib/base_config.rb', line 49

def db_system_user
  "user"
end

#project_prefixObject



8
9
10
# File 'lib/base_config.rb', line 8

def project_prefix
  "BSW"
end

#test_javascript_browsersObject



77
78
79
80
# File 'lib/base_config.rb', line 77

def test_javascript_browsers
  ["D:/Program Files/Mozilla Firefox/firefox.exe",
   "C:/Users/brady/AppData/Local/Google/Chrome/Application/chrome.exe"]
end

#test_javascript_portObject



73
74
75
# File 'lib/base_config.rb', line 73

def test_javascript_port
  9876
end