From b01355a0931eecb3cdda289901e78ea51a752b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Wn=C4=99trzak?= Date: Mon, 11 Jun 2012 21:42:59 +0200 Subject: [PATCH] fixed using YAML --- lib/foreman/cli.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/foreman/cli.rb b/lib/foreman/cli.rb index 8a62b78..374cabc 100644 --- a/lib/foreman/cli.rb +++ b/lib/foreman/cli.rb @@ -4,6 +4,7 @@ require "foreman/engine" require "foreman/engine/cli" require "foreman/export" require "shellwords" +require "yaml" require "thor" class Foreman::CLI < Thor @@ -126,7 +127,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