module BigResources

Constants

BMP
DIRECTORY
FILE
JPEG
JPG
PDF
PNG
UNKNOWN
VERSION

Public Class Methods

image_resource_command() click to toggle source
# File lib/big_resources/command/image_command.rb, line 8
def self.image_resource_command
  desc "Detect image resource"
    command :image do | c |
      c.desc "Detect duplicate name image resources."
      c.command :name do | name |
        name.action do | global_options, options, args |
          path = File.expand_path(global_options[:path])
          ImageAnalyzeUtil.get_duplicate_name_file_with_type(path, PNG)
        end
      end

      c.desc "Detect duplicate content image resources."
      c.command :content do | content |
        content.action do | global_options, options, args |
          path = File.expand_path(global_options[:path])
          ImageAnalyzeUtil.get_duplicate_content_file_with_type(path, PNG)
        end
      end

  end
end