diff --git a/wait/Cargo.lock b/wait/Cargo.lock index 4966bee..d5145b3 100644 --- a/wait/Cargo.lock +++ b/wait/Cargo.lock @@ -15,7 +15,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "time" -version = "0.1.39" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "libc 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", @@ -25,10 +25,10 @@ dependencies = [ [[package]] name = "wait" -version = "2.2.0" +version = "2.3.0" dependencies = [ "atomic-counter 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -54,7 +54,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum atomic-counter 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6a234ef510cfd400d5be2c233183249860d154570b2eb59e45b24dbfa4cf07a7" "checksum libc 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)" = "56cce3130fd040c28df6f495c8492e5ec5808fb4c9093c310df02b0c8f030148" "checksum redox_syscall 0.1.31 (registry+https://github.com/rust-lang/crates.io-index)" = "8dde11f18c108289bef24469638a04dce49da56084f2d50618b226e47eb04509" -"checksum time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "a15375f1df02096fb3317256ce2cee6a1f42fc84ea5ad5fc8c421cfe40c73098" +"checksum time 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)" = "d825be0eb33fda1a7e68012d51e9c7f451dc1a69391e7fdc197060bb8c56667b" "checksum winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "04e3bd221fcbe8a271359c04f21a76db7d0c6028862d1bb5512d85e1e2eb5bb3" "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/wait/Cargo.toml b/wait/Cargo.toml index 18026a2..f6642ac 100644 --- a/wait/Cargo.toml +++ b/wait/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "wait" -version = "2.2.0" +version = "2.3.0" authors = ["ufoscout "] [dependencies] [dev-dependencies] -time = "0.1.39" +time = "0.1.40" atomic-counter = "0.1.0" diff --git a/wait/src/lib.rs b/wait/src/lib.rs index ba2b633..b0a734b 100644 --- a/wait/src/lib.rs +++ b/wait/src/lib.rs @@ -11,6 +11,14 @@ pub struct Config { pub fn wait(sleep: &sleeper::Sleeper, config: &Config, on_timeout : &mut FnMut() ) { + println!("Docker-compose-wait starting with configuration:"); + println!("------------------------------------------------"); + println!(" - Hosts to be waiting for: [{}]", config.hosts); + println!(" - Timeout before failure: {} seconds ", config.timeout); + println!(" - Sleeping time before checking for hosts availability: {} seconds", config.wait_before); + println!(" - Sleeping time once all hosts are available: {} seconds", config.wait_after); + println!("------------------------------------------------"); + if config.wait_before > 0 { println!("Waiting {} seconds before checking for hosts availability", config.wait_before); sleep.sleep(config.wait_before);