src/supermarket/engines/fieri/app/models/cookbook_artifact.rb
def binaries
    prep

    cookbook_files = Dir["#{work_dir}/**/*"]
    binaries_found = []

    cookbook_files.each do |file|
      case # rubocop:disable Style/EmptyCaseCondition
      when File.directory?(file)
        next
      when binary?(file)
        binaries_found << file.gsub("#{work_dir}/", "")
      when too_big?(file)
        binaries_found << file.gsub("#{work_dir}/", "") + " (size > #{FILE_SIZE_LIMIT} bytes)"
      end
    end

    binaries_found.join("\n")
  end
#
# Returns a list of binaries found in a cookbook
#
Returns a list of binaries found in a cookbook
Returns a list of binaries found in a cookbook
def binaries
    prep
    cookbook_files = Dir["#{work_dir}/**/*"]
    binaries_found = []
    cookbook_files.each do |file|
      case 
      when File.directory?(file)
        next
      when binary?(file)
        binaries_found << file.gsub("#{work_dir}/", "")
      when too_big?(file)
        binaries_found << file.gsub("#{work_dir}/", "") + " (size > #{FILE_SIZE_LIMIT} bytes)"
      end
    end
    binaries_found.join("\n")
  end
def binaries prep cookbook_files = Dir [ "#{work_dir}/**/*" ] binaries_found = [ ] cookbook_files . each do | file | case when File . directory? ( file ) next when binary? ( file ) binaries_found << file . gsub ( "#{work_dir}/" , "" ) when too_big? ( file ) binaries_found << file . gsub ( "#{work_dir}/" , "" ) + " (size > #{FILE_SIZE_LIMIT} bytes)" end end binaries_found . join ( "\n" ) end
Returns a list of binaries found in a cookbook
Returns a list of binaries found in a cookbook
# rubocop:disable Style/EmptyCaseCondition