README.md in synchronised_migration-1.0.2 vs README.md in synchronised_migration-2.0.0

- old
+ new

@@ -13,16 +13,21 @@ This is a Ruby port of the same logic written in PHP in our [Craft Docker](https://github.com/sealink/craft-docker) project. ## Usage -Class `RedisConfig` needs to be provided as follow. +Module `SynchronisedMigration` needs to be configured as below. ``` -RedisConfig.get[:host] # example.com -RedisConfig.get[:port] # 6379 -RedisConfig.get[:db] # 0 + SynchronisedMigration.configure do |config| + config.host = 'example.com' + config.port = 6379 + config.db = 0 + end ``` + +Configuration can be called by using +```SynchronisedMigration.redis_config.host``` or similar. You may override these settings through environment variables. ``` SYNCHRONISED_COMMAND=bin/launch/migrate