[Command Line] Don't force the user to specify the configuration path when calling compass config

This commit is contained in:
Chris Eppstein 2010-02-13 11:40:59 -08:00
parent bb77dcefcb
commit 6878899c4c

View File

@ -59,8 +59,11 @@ module Compass
end end
end end
else else
directory File.dirname(options[:configuration_file]) config_file = options[:configuration_file]
installer.write_configuration_files(options[:configuration_file]) config_file ||= Compass.detect_configuration_file
config_file ||= Compass::Configuration::Helpers::KNOWN_CONFIG_LOCATIONS.first
directory File.dirname(config_file)
installer.write_configuration_files(config_file)
end end
end end