Sha256: 3f4b53bcd6c363268ec90cadd40862459fbb0800f2901ccaeb330906782e2c89

Contents?: true

Size: 691 Bytes

Versions: 1

Compression:

Stored size: 691 Bytes

Contents

# encoding: UTF-8

module Gjp
  # gjp list-kit-missing-sources
  class ListKitMissingSourcesCommand < Gjp::BaseCommand
    def execute
      checking_exceptions do
        project = Gjp::Project.new(".")
        kit_checker = Gjp::KitChecker.new(project)

        ensure_dry_running(false, project) do
          puts "Some source files were not found in these archives:"
          kit_checker.unsourced_archives.each do |archive|
            percentage = 100.0 * archive[:unsourced_class_names].length / archive[:class_names].length
            puts "#{format_path(archive[:archive], project)} (~#{format("%.2f", percentage)}% missing)"
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gjp-0.39.0 lib/gjp/commands/list_kit_missing_sources.rb