Class: MigrationPathService
- Inherits:
-
Object
- Object
- MigrationPathService
show all
- Defined in:
- lib/schema_migration_monitor/migration_path_service.rb
Defined Under Namespace
Classes: MigrationPathNotFoundError
Constant Summary
collapse
- DEFAULT_MIGRATION_PATH =
'./db/migrate'
- USER_CONFIG_PATH =
'.schema_migration_monitor.yml'
Class Method Summary
collapse
Class Method Details
.get_user_config_path ⇒ Object
17
18
19
|
# File 'lib/schema_migration_monitor/migration_path_service.rb', line 17
def get_user_config_path
YAML::load(user_config_file)['migration_path']
end
|
.user_config_file ⇒ Object
21
22
23
|
# File 'lib/schema_migration_monitor/migration_path_service.rb', line 21
def user_config_file
File.open(USER_CONFIG_PATH)
end
|