Class: Makanai::Settings

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Class Attribute Details

.app_root_pathObject

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_pathObject

Returns the value of attribute database_path.



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

def database_path
  @database_path
end

.databse_clientObject

Returns the value of attribute databse_client.



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

def databse_client
  @databse_client
end

.databse_configObject

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_pathObject

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_configObject

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_engineObject

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_pathObject

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_pathObject



54
55
56
# File 'lib/makanai/settings.rb', line 54

def database_full_path
  File.join(app_root_path, database_path)
end

.migration_full_pathObject



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_pathObject



58
59
60
# File 'lib/makanai/settings.rb', line 58

def template_full_path
  File.join(app_root_path, template_root_path)
end