vendor/gems/chriseppstein-compass-0.8.10/lib/compass/commands/project_base.rb
# Finds the configuration file, if it exists in a known location.
Finds the configuration file, if it exists in a known location.
Finds the configuration file if it exists in a known location .
def detect_configuration_file
        if options[:configuration_file]
          if explicit_config_file_must_be_readable? && !File.readable?(options[:configuration_file])
            raise Compass::Error, "Configuration file, #{file}, not found or not readable."
          end
          return options[:configuration_file]
        end
        KNOWN_CONFIG_LOCATIONS.map{|f| projectize(f)}.detect{|f| File.exists?(f)}
      end
def detect_configuration_file if options [ :configuration_file ] if explicit_config_file_must_be_readable? && ! File . readable? ( options [ :configuration_file ] ) raise Compass :: Error , "Configuration file, #{file}, not found or not readable." end return options [ :configuration_file ] end KNOWN_CONFIG_LOCATIONS . map { | f | projectize ( f ) } . detect { | f | File . exists? ( f ) } end
Finds the configuration file, if it exists in a known location.
Finds the configuration file if it exists in a known location .