system_cat 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/system_cat/shell.rb +4 -5
- 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: 3358c3acbc0a74512745793190c956c19918aaf3
|
|
4
|
+
data.tar.gz: bd07b04625440616c967678b11b97d34bc8afe63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0921708961ffff675d11374cf112c561a85a06ad667fc71ed67dedfd6150f14bf1a58eb994d59f9c7f9487bdc0c7c740b1aaac5dd97f6c9de652e8e5a800d21
|
|
7
|
+
data.tar.gz: ce750fc2d54ea35241fc6b3976a8e1fe1ab5b68dba1ed2311c549060f817cfdd4e75f04325789e4b606db990dcc182c474fc9f71f36216708094c1f0109e6755
|
data/lib/system_cat/shell.rb
CHANGED
|
@@ -5,18 +5,17 @@ module SystemCat
|
|
|
5
5
|
puts '_______________________________________________________________________________'
|
|
6
6
|
puts command
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
result = `#{command}`
|
|
10
|
-
puts result
|
|
11
|
-
end
|
|
8
|
+
return if test
|
|
12
9
|
|
|
10
|
+
result = `#{command}`
|
|
11
|
+
puts result
|
|
13
12
|
raise 'Command failed' unless exitstatus.zero? || force
|
|
14
13
|
|
|
15
14
|
return result
|
|
16
15
|
end
|
|
17
16
|
|
|
18
17
|
def self.exitstatus
|
|
19
|
-
|
|
18
|
+
$?.exitstatus
|
|
20
19
|
end
|
|
21
20
|
end
|
|
22
21
|
end
|