file_crawler 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/file_crawler/finder/command/search.rb +3 -0
- data/lib/file_crawler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5bb09fde1ddd815e076da3ab5031cbaa2f9ab2ee7952c5a0dd189d2d6c268b2
|
4
|
+
data.tar.gz: 36865575d2eb400fa0b90ae819febb9f77baf8a76169576a66e311974eb4f699
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e02161fb2a9700933e390ae80d4f1c24c5d0319a4b4654511c15f33e7b10d08eb5e1adaf3177517597003bf52ee848d5259335facbcae3f338f5461d761d8537
|
7
|
+
data.tar.gz: 747ff1abe077f5777d3be178b54374bd8dc0f5d6ae9a0047944ff44cd87a91aa8d052dd025f58da20f4c111ab903995883ee43dce05133dd7bc1df3e4fc37a98
|
@@ -15,6 +15,9 @@ module FileCrawler::Finder::Command
|
|
15
15
|
if options[:maxdepth] && options[:maxdepth] > 0
|
16
16
|
cmd = "find #{path} -maxdepth #{options[:maxdepth]} -type d"
|
17
17
|
end
|
18
|
+
if options[:grep]
|
19
|
+
cmd += "| grep #{options[:grep]}"
|
20
|
+
end
|
18
21
|
|
19
22
|
exec(cmd).each_line {|item|
|
20
23
|
item.chomp!
|
data/lib/file_crawler/version.rb
CHANGED