gratan 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gratan/exporter.rb +4 -0
- data/lib/gratan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a2b2f0b324787b466435a74790f4c028e32578c
|
4
|
+
data.tar.gz: 6cc2d13824a99016c8845ba5ed4b6eb231695d65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93faec5b23265a98288d318efca14aea6a226713c96af145238b8bfb5f405f24c5741894f7a7547b83ed423f49086aa967e7f16c53c7461d99962218511d161b
|
7
|
+
data.tar.gz: 65964c219ade408dd5d1d4435aa4ab9d297874c844462f50b7de727ef7d8a216659101d0675be60c5942043142faaabc2f4abcd47752d33c9cad8f47cfd43f3a
|
data/lib/gratan/exporter.rb
CHANGED
@@ -14,6 +14,10 @@ class Gratan::Exporter
|
|
14
14
|
@driver.each_user do |user, host|
|
15
15
|
next if user =~ @options[:ignore_user]
|
16
16
|
|
17
|
+
if @options[:target_user]
|
18
|
+
next unless user =~ @options[:target_user]
|
19
|
+
end
|
20
|
+
|
17
21
|
@driver.show_grants(user, host) do |stmt|
|
18
22
|
grants << Gratan::GrantParser.parse(stmt)
|
19
23
|
end
|
data/lib/gratan/version.rb
CHANGED