execute 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cmd.rb +6 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71bef2a82d62bf102fe5b986dd3cccdeeb816a41
4
- data.tar.gz: acc128f10029392a24853eb0876055907279bf5c
3
+ metadata.gz: 3a15b4335aee9d437cbaf6b81162514b3f0c04df
4
+ data.tar.gz: 405f98d1d32e83d83f190136dac2fda97a3230f5
5
5
  SHA512:
6
- metadata.gz: 9b9ba2ee39ece1c00a4c09f22b2ccc6b1b1190f28122b8d035830506bcfb1b6e6f8ccb407e7c809e7740c98603f86436851c11d839170ec8c50bf60eaedf06c5
7
- data.tar.gz: 429497d6729b39973507a44dae0e215f25a9d77518a6e3a416ce54a8994537aff05fed32ceffdc368a0d12b782217ae69aa6c385d1471c352474f97e41ec8641
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]}" if(self[:quiet])
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]}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.30
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall