Class: Makanai::Settings
- Inherits:
-
Object
- Object
- Makanai::Settings
- Defined in:
- lib/makanai/settings.rb
Constant Summary collapse
- DEFAULT_APP_ROOT_PATH =
Dir.pwd
- DEFAULT_DATABASE_PATH =
'/db/makanai.db'
- DEFAULT_TEMPLATE_ROOT_PATH =
'/views/'
- DEFAULT_MIGRATION_ROOT_PATH =
'/migration/'
- DEFAULT_RACK_APP_CONFIG =
{ handler: :webrick, host: '0.0.0.0', port: '8080' }.freeze
- DEFAULT_TEMPLATE_ENGINE =
:erb
Class Attribute Summary collapse
-
.app_root_path ⇒ Object
Returns the value of attribute app_root_path.
-
.database_path ⇒ Object
Returns the value of attribute database_path.
-
.databse_client ⇒ Object
Returns the value of attribute databse_client.
-
.databse_config ⇒ Object
Returns the value of attribute databse_config.
-
.migration_root_path ⇒ Object
Returns the value of attribute migration_root_path.
-
.rack_app_config ⇒ Object
Returns the value of attribute rack_app_config.
-
.template_engine ⇒ Object
Returns the value of attribute template_engine.
-
.template_root_path ⇒ Object
Returns the value of attribute template_root_path.
Class Method Summary collapse
Class Attribute Details
.app_root_path ⇒ Object
Returns the value of attribute app_root_path.
45 46 47 |
# File 'lib/makanai/settings.rb', line 45 def app_root_path @app_root_path end |
.database_path ⇒ Object
Returns the value of attribute database_path.
45 46 47 |
# File 'lib/makanai/settings.rb', line 45 def database_path @database_path end |
.databse_client ⇒ Object
Returns the value of attribute databse_client.
45 46 47 |
# File 'lib/makanai/settings.rb', line 45 def databse_client @databse_client end |
.databse_config ⇒ Object
Returns the value of attribute databse_config.
45 46 47 |
# File 'lib/makanai/settings.rb', line 45 def databse_config @databse_config end |
.migration_root_path ⇒ Object
Returns the value of attribute migration_root_path.
45 46 47 |
# File 'lib/makanai/settings.rb', line 45 def migration_root_path @migration_root_path end |
.rack_app_config ⇒ Object
Returns the value of attribute rack_app_config.
45 46 47 |
# File 'lib/makanai/settings.rb', line 45 def rack_app_config @rack_app_config end |
.template_engine ⇒ Object
Returns the value of attribute template_engine.
45 46 47 |
# File 'lib/makanai/settings.rb', line 45 def template_engine @template_engine end |
.template_root_path ⇒ Object
Returns the value of attribute template_root_path.
45 46 47 |
# File 'lib/makanai/settings.rb', line 45 def template_root_path @template_root_path end |
Class Method Details
.database_full_path ⇒ Object
54 55 56 |
# File 'lib/makanai/settings.rb', line 54 def database_full_path File.join(app_root_path, database_path) end |
.migration_full_path ⇒ Object
62 63 64 |
# File 'lib/makanai/settings.rb', line 62 def migration_full_path File.join(app_root_path, migration_root_path) end |
.template_full_path ⇒ Object
58 59 60 |
# File 'lib/makanai/settings.rb', line 58 def template_full_path File.join(app_root_path, template_root_path) end |