dev_commands 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/command.rb +2 -2
- 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: cf409f59ec9828be63d4562c2ff738265c7e3e60
|
4
|
+
data.tar.gz: 205385c27922be4e6c669e104e6774bb86a090f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f4cc9b8509db05aa6ed0a23532e4d18da5653f0239c9603e12404f9abd85635664ed4e64a5244c94b014243d4dd464ceff5148e32f7a83be2bb8b2964d0e96c
|
7
|
+
data.tar.gz: 843faae67ae8a81e127cf6f360c3926b28c34cc1a5c9d80f6027cddd55428c89b76713f42b2f1c1a513bd09d5a60f6734a21198ede4ae3246a6e73035744134c
|
data/lib/command.rb
CHANGED
@@ -29,7 +29,7 @@ class Command < Hash
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def execute
|
32
|
-
puts "#{self[:input]}" if(!self.has_key?(:quiet) || self[:quiet])
|
32
|
+
puts "#{self[:input]}" if(!self.has_key?(:quiet) || !self[:quiet])
|
33
33
|
pwd=Dir.pwd
|
34
34
|
Dir.chdir(self[:directory]) if(self.has_key?(:directory) && File.exists?(self[:directory]))
|
35
35
|
self[:directory] = pwd if(self[:directory].length==0)
|
@@ -68,7 +68,7 @@ class Command < Hash
|
|
68
68
|
Dir.chdir(pwd) if pwd != Dir.pwd
|
69
69
|
|
70
70
|
if(self[:exit_code] != 0)
|
71
|
-
if(!self.has_key?(:quiet) || self[:quiet])
|
71
|
+
if(!self.has_key?(:quiet) || !self[:quiet])
|
72
72
|
puts ' '
|
73
73
|
puts "exit_code=#{self[:exit_code]}"
|
74
74
|
puts ' '
|