Module: BigResources
- Defined in:
- lib/big_resources.rb,
lib/big_resources/version.rb,
lib/big_resources/model/file_type.rb,
lib/big_resources/model/file_model.rb,
lib/big_resources/model/hierarchy_type.rb,
lib/big_resources/command/image_command.rb,
lib/big_resources/util/image/file_scan_util.rb,
lib/big_resources/util/image/diff_analyze_util.rb,
lib/big_resources/util/image/name_analyze_util.rb
Defined Under Namespace
Classes: DifferAnalyzeUtil, FileInfoModel, FileScanUtil, ImageAnalyzeUtil, PictureFileType, TreeHierarchyType
Constant Summary collapse
- VERSION =
"0.1.3"
- UNKNOWN =
-1
- PNG =
1
- PDF =
2
- JPG =
3
- JPEG =
4
- BMP =
5
- FILE =
1
- DIRECTORY =
2
Class Method Summary collapse
Class Method Details
.image_resource_command ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# 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 | , , args | path = File.([: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 | , , args | path = File.([:path]) ImageAnalyzeUtil.get_duplicate_content_file_with_type(path, PNG) end end end end |