fixed using YAML

This commit is contained in:
Wojciech Wnętrzak
2012-06-11 21:42:59 +02:00
parent 8b18143281
commit b01355a093
+2 -1
View File
@@ -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