From 04c73a970d991be59d3f17a7883508ce00c8ba60 Mon Sep 17 00:00:00 2001 From: Nate Wolfe Date: Fri, 21 Aug 2020 14:38:04 -0700 Subject: [PATCH] (maint) Remove warning about missing configuration file Previously the CLI would emit a warning about missing configuration file, but a configuration file does not appear to be a requirement, at least based on the documentation and the fact that everything can be specified directly on the command line. This commit simply removes the warning. Users will no longer get a warning when doing things like `floaty --version`, `floaty help`, and any other subcommand. --- lib/vmfloaty/conf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vmfloaty/conf.rb b/lib/vmfloaty/conf.rb index 0b61f30..904020d 100644 --- a/lib/vmfloaty/conf.rb +++ b/lib/vmfloaty/conf.rb @@ -8,7 +8,7 @@ class Conf begin conf = YAML.load_file("#{Dir.home}/.vmfloaty.yml") rescue StandardError - FloatyLogger.warn "WARNING: There was no config file at #{Dir.home}/.vmfloaty.yml" + # ignore end conf end