execute 0.1.30 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cmd.rb +6 -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: 3a15b4335aee9d437cbaf6b81162514b3f0c04df
|
4
|
+
data.tar.gz: 405f98d1d32e83d83f190136dac2fda97a3230f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3600399ef969f30f944df97a49b49ce7d2b0ac91a3bbbb82984402a92be4223b87615003ad25fe38d5d0041493fd977ca9b5883396102f5770cffd05c5965840
|
7
|
+
data.tar.gz: 7c45864eaba30267d7b3b45081ebaadfcef7168f2f73fb409d6707646af27b0ec8cd5f8c2ad9b9bce8796c152cdcc39abd5da2bab3445dda0e191cf448032e9b
|
data/lib/cmd.rb
CHANGED
@@ -22,11 +22,16 @@ class CMD < Hash
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def execute
|
25
|
+
if(self[:quiet])
|
26
|
+
self[:echo_output] = false
|
27
|
+
self[:echo_command] = false
|
28
|
+
end
|
29
|
+
|
25
30
|
puts self[:command] if(self[:echo_command] || self[:debug])
|
26
31
|
system
|
27
32
|
|
28
33
|
if(self[:debug])
|
29
|
-
puts "command: #{self[:command]}"
|
34
|
+
puts "command: #{self[:command]}"
|
30
35
|
puts "output: #{self[:output]}"
|
31
36
|
puts "error: #{self[:error]}"
|
32
37
|
puts "exit_code: #{self[:exit_code]}"
|