def bundle!(bundle_name = false, compress = false)
      resolve! if paths.empty?
      if bundle_name
        files = self.paths[bundle_name]
        if bundle_dir
          path = path_for_bundle(bundle_name, compress)
          concatenate(files, path, compress)
          [path]
        else
          concatenate(files, "", compress)
        end
      elsif bundle_dir
        self.paths.collect do |bundle_name, files|
          path = path_for_bundle(bundle_name, compress)
          concatenate(files, path, compress)
          path
        end
      else
        raise(InvalidBundle,
          "Must set either a :bundle_dir to write files to or a specific bundle to write to STDOUT")
      end
    end
def bundle!(bundle_name = false, compress = false)
      resolve! if paths.empty?
      if bundle_name
        files = self.paths[bundle_name]
        if bundle_dir
          path = path_for_bundle(bundle_name, compress)
          concatenate(files, path, compress)
          [path]
        else
          concatenate(files, "", compress)
        end
      elsif bundle_dir
        self.paths.collect do |bundle_name, files|
          path = path_for_bundle(bundle_name, compress)
          concatenate(files, path, compress)
          path
        end
      else
        raise(InvalidBundle,
          "Must set either a :bundle_dir to write files to or a specific bundle to write to STDOUT")
      end
    end
Concatenate all of the bundles to the dir set in `bundle_dir`
 or a specific bundle specified by bundle name. Setting `compress` to
 true will run the output of each bundle to the Google Closure Compiler.
 You can also use the YUI compressor by setting the option :compressor to 'yui'
 Raises an error if there is no bundled dir or specific bundle set