semaphore_test_boosters 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_boosters/insights_uploader.rb +1 -1
- data/lib/test_boosters/shell.rb +4 -1
- data/lib/test_boosters/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: 7474432e135e256f7ee2decb5ba7f3ef81426faa
|
4
|
+
data.tar.gz: 7a27dda01016d4366809ee64a7c11a850500e7ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6542bfaaa7b0712eb9417c3d42753a3b340b7572a63752bf9e4928548812dd27d05faa62cec57aa2bb35cc1b1d64b6ca846189b0e9c6310a04f67faef5062179
|
7
|
+
data.tar.gz: 8267989c357ee0215297fe8dcfa2d8f9346283e82f6636274e70d1e406366fa479dbd3616d789f1193553efa82ef82618b45dcfd672a14b1ceaff313570b9e9f
|
@@ -5,7 +5,7 @@ module TestBoosters
|
|
5
5
|
def upload(booster_type, file)
|
6
6
|
cmd = "http POST '#{insights_url}' #{booster_type}:=@#{file}"
|
7
7
|
|
8
|
-
TestBoosters::Shell.execute("#{cmd} > ~/insights_uploader.log")
|
8
|
+
TestBoosters::Shell.execute("#{cmd} > ~/insights_uploader.log", :silent => true)
|
9
9
|
end
|
10
10
|
|
11
11
|
def insights_url
|
data/lib/test_boosters/shell.rb
CHANGED
@@ -2,9 +2,12 @@ module TestBoosters
|
|
2
2
|
module Shell
|
3
3
|
module_function
|
4
4
|
|
5
|
-
|
5
|
+
# :reek:TooManyStatements
|
6
|
+
def execute(command, options = {})
|
6
7
|
TestBoosters::Logger.info("Running command: #{command}")
|
7
8
|
|
9
|
+
puts command unless options[:silent] == true
|
10
|
+
|
8
11
|
system(command)
|
9
12
|
|
10
13
|
exit_status = $?.exitstatus
|