bauditor 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bauditor/cli.rb +5 -1
- data/lib/bauditor/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: d7ad402619f7d07528f84e7a47b14cece99b5552
|
4
|
+
data.tar.gz: 14ef287675f1c1e8d9927a47b8399d3cd13fdbb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 463f8a85acddb99cd3804fa2ad8649ec9d66416eb28d06e3f9e7a7bdf55347ee68f02879f67781799f44372d0354cc57c1b8f846689f27a8304882f4f7b10190
|
7
|
+
data.tar.gz: 54ceda921c48f3470f7eb19275ca7626957dbcf9e9f97554034f285e0252403115a83f0df858b5dc673681d7058edeb246562a1773c9903d9659a5d0f865b9a3
|
data/lib/bauditor/cli.rb
CHANGED
@@ -17,6 +17,8 @@ module Bauditor
|
|
17
17
|
exit 1
|
18
18
|
end
|
19
19
|
|
20
|
+
@cwd = Dir.getwd
|
21
|
+
|
20
22
|
setup_dirs
|
21
23
|
Dir.chdir repo_path
|
22
24
|
|
@@ -36,7 +38,7 @@ module Bauditor
|
|
36
38
|
attr_accessor :repos, :summary
|
37
39
|
|
38
40
|
def add_repos_from_config
|
39
|
-
self.repos += File.readlines(options[:config]).map(&:chomp)
|
41
|
+
self.repos += File.readlines(File.join(@cwd, options[:config])).map(&:chomp)
|
40
42
|
end
|
41
43
|
|
42
44
|
def audit_repos
|
@@ -97,6 +99,8 @@ module Bauditor
|
|
97
99
|
end
|
98
100
|
|
99
101
|
def summary_report
|
102
|
+
return if summary.empty?
|
103
|
+
|
100
104
|
say '[BAUDITOR] summary report:', [:green, :bold]
|
101
105
|
|
102
106
|
long_name = summary.keys.max_by(&:length)
|
data/lib/bauditor/version.rb
CHANGED