Class: BradyW::BaseConfig
- Inherits:
-
Object
- Object
- BradyW::BaseConfig
- Defined in:
- lib/base_config.rb
Class Method Summary collapse
Instance Method Summary collapse
- #build_type ⇒ Object
- #db_connect_string_sqlauth ⇒ Object
- #db_connect_string_winauth ⇒ Object
-
#db_general_authmode ⇒ Object
winauth or sqlauth.
- #db_general_password ⇒ Object
- #db_general_user ⇒ Object
- #db_hostname ⇒ Object
- #db_name ⇒ Object
- #db_object_creation_authmode ⇒ Object
- #db_object_creation_password ⇒ Object
- #db_object_creation_user ⇒ Object
- #db_system_authmode ⇒ Object
- #db_system_datadir ⇒ Object
- #db_system_password ⇒ Object
- #db_system_user ⇒ Object
- #project_prefix ⇒ Object
- #test_javascript_browsers ⇒ Object
- #test_javascript_port ⇒ Object
Class Method Details
.subclasses ⇒ Object
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_type ⇒ Object
69 70 71 |
# File 'lib/base_config.rb', line 69 def build_type :Debug end |
#db_connect_string_sqlauth ⇒ Object
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_winauth ⇒ Object
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_authmode ⇒ Object
winauth or sqlauth
33 34 35 |
# File 'lib/base_config.rb', line 33 def db_general_authmode :sqlauth end |
#db_general_password ⇒ Object
41 42 43 |
# File 'lib/base_config.rb', line 41 def db_general_password "password" end |
#db_general_user ⇒ Object
37 38 39 |
# File 'lib/base_config.rb', line 37 def db_general_user db_name end |
#db_hostname ⇒ Object
12 13 14 |
# File 'lib/base_config.rb', line 12 def db_hostname "localhost\\sqlexpress" end |
#db_name ⇒ Object
16 17 18 |
# File 'lib/base_config.rb', line 16 def db_name "@prefix@-@thismachinehostname@" end |
#db_object_creation_authmode ⇒ Object
20 21 22 |
# File 'lib/base_config.rb', line 20 def db_object_creation_authmode :winauth end |
#db_object_creation_password ⇒ Object
28 29 30 |
# File 'lib/base_config.rb', line 28 def db_object_creation_password "password" end |
#db_object_creation_user ⇒ Object
24 25 26 |
# File 'lib/base_config.rb', line 24 def db_object_creation_user "user" end |
#db_system_authmode ⇒ Object
45 46 47 |
# File 'lib/base_config.rb', line 45 def db_system_authmode :winauth end |
#db_system_datadir ⇒ Object
57 58 59 |
# File 'lib/base_config.rb', line 57 def db_system_datadir "D:/sqlserverdata" end |
#db_system_password ⇒ Object
53 54 55 |
# File 'lib/base_config.rb', line 53 def db_system_password "password" end |
#db_system_user ⇒ Object
49 50 51 |
# File 'lib/base_config.rb', line 49 def db_system_user "user" end |
#project_prefix ⇒ Object
8 9 10 |
# File 'lib/base_config.rb', line 8 def project_prefix "BSW" end |
#test_javascript_browsers ⇒ Object
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_port ⇒ Object
73 74 75 |
# File 'lib/base_config.rb', line 73 def test_javascript_port 9876 end |