Class: Forty::Configuration
- Inherits:
-
Object
- Object
- Forty::Configuration
- Defined in:
- lib/forty/configuration.rb
Instance Attribute Summary collapse
-
#acl_file ⇒ Object
Returns the value of attribute acl_file.
-
#generate_passwords ⇒ Object
Returns the value of attribute generate_passwords.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#master_username ⇒ Object
Returns the value of attribute master_username.
-
#schemas ⇒ Object
Returns the value of attribute schemas.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
13 14 15 16 17 18 19 |
# File 'lib/forty/configuration.rb', line 13 def initialize @logger = ::Logger.new(STDOUT) @logger.level = ::Logger::INFO @logger.formatter = proc do |severity, _, _, | "[Forty] [#{severity}] #{message}\n" end end |
Instance Attribute Details
#acl_file ⇒ Object
Returns the value of attribute acl_file.
10 11 12 |
# File 'lib/forty/configuration.rb', line 10 def acl_file @acl_file end |
#generate_passwords ⇒ Object
Returns the value of attribute generate_passwords.
11 12 13 |
# File 'lib/forty/configuration.rb', line 11 def generate_passwords @generate_passwords end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/forty/configuration.rb', line 7 def logger @logger end |
#master_username ⇒ Object
Returns the value of attribute master_username.
8 9 10 |
# File 'lib/forty/configuration.rb', line 8 def master_username @master_username end |
#schemas ⇒ Object
Returns the value of attribute schemas.
9 10 11 |
# File 'lib/forty/configuration.rb', line 9 def schemas @schemas end |