compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/configuration/helpers.rb
def add_project_configuration(*args)
        options = args.last.is_a?(Hash) ? args.pop : {}
        configuration_file_path = args.shift || detect_configuration_file

        raise ArgumentError, "Too many arguments" if args.any?
        if AppIntegration.default? && data = configuration_for(configuration_file_path, nil, configuration_for(options[:defaults]))
          if data.raw_project_type
            add_configuration(data.raw_project_type.to_sym)
          elsif options[:project_type]
            add_configuration(options[:project_type])
          else
            add_configuration(:stand_alone)
          end
          add_configuration(data)
        else
          add_configuration(options[:project_type] || configuration.project_type_without_default || (yield if block_given?) || :stand_alone)  
        end
      end
# Read the configuration file for this project
Read the configuration file for this project
Read the configuration file for this project
def add_project_configuration(*args)
        options = args.last.is_a?(Hash) ? args.pop : {}
        configuration_file_path = args.shift || detect_configuration_file
        raise ArgumentError, "Too many arguments" if args.any?
        if AppIntegration.default? && data = configuration_for(configuration_file_path, nil, configuration_for(options[:defaults]))
          if data.raw_project_type
            add_configuration(data.raw_project_type.to_sym)
          elsif options[:project_type]
            add_configuration(options[:project_type])
          else
            add_configuration(:stand_alone)
          end
          add_configuration(data)
        else
          add_configuration(options[:project_type] || configuration.project_type_without_default || (yield if block_given?) || :stand_alone)  
        end
      end
def add_project_configuration ( * args ) options = args . last . is_a? ( Hash ) ? args . pop : { } configuration_file_path = args . shift || detect_configuration_file raise ArgumentError , "Too many arguments" if args . any? if AppIntegration . default? && data = configuration_for ( configuration_file_path , nil , configuration_for ( options [ :defaults ] ) ) if data . raw_project_type add_configuration ( data . raw_project_type . to_sym ) elsif options [ :project_type ] add_configuration ( options [ :project_type ] ) else add_configuration ( :stand_alone ) end add_configuration ( data ) else add_configuration ( options [ :project_type ] || configuration . project_type_without_default || ( yield if block_given? ) || :stand_alone ) end end
Read the configuration file for this project
Read the configuration file for this project
args