def copy_assets(target_dir)
      FileUtils.mkdir_p target_dir

      self.class.assets.map do |asset|
        asset_path = self.class.find asset
        asset_dir = File.join target_dir, File.dirname(asset)
        FileUtils.mkdir_p asset_dir unless File.exists? asset_dir
        FileUtils.cp_r asset_path, asset_dir
      end
    end
def copy_assets(target_dir)
      FileUtils.mkdir_p target_dir

      self.class.assets.map do |asset|
        asset_path = self.class.find asset
        asset_dir = File.join target_dir, File.dirname(asset)
        FileUtils.mkdir_p asset_dir unless File.exists? asset_dir
        FileUtils.cp_r asset_path, asset_dir
      end
    end
Copies the assets coming with this report to the given target directory

 This will copy the files and directories that have been specified for the
 report from the report's path (or the report's ancestors) into the target
 directory.

 @param [String] target_dir The target directory of the report
 @see .assets