diff --git a/lib/foreman/cli.rb b/lib/foreman/cli.rb index 2ece1ae..cedd41a 100644 --- a/lib/foreman/cli.rb +++ b/lib/foreman/cli.rb @@ -86,7 +86,7 @@ private ###################################################################### def options original_options = super return original_options unless File.exists?(".foreman") - defaults = YAML::load_file(".foreman") + defaults = YAML::load_file(".foreman") || {} Thor::CoreExt::HashWithIndifferentAccess.new(defaults.merge(original_options)) end