shell_command 0.2.3 → 0.2.4
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.
- data/README.md +6 -6
- data/lib/shell_command/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -11,15 +11,15 @@ __OVERVIEW__
|
|
11
11
|
__DESCRIPTION__
|
12
12
|
|
13
13
|
A library for spawning shell commands in Ruby. The library can be useful when
|
14
|
-
you'd like to run a command and find out if it was
|
14
|
+
you'd like to run a command and find out if it was successful(e.g: exited with a
|
15
15
|
status code of 0) or if you'd like to access the standard output and standard
|
16
|
-
error streams
|
17
|
-
|
16
|
+
error streams for a given shell command.
|
18
17
|
|
19
18
|
__EXAMPLES__
|
20
19
|
|
21
|
-
The first example lets you handle a failure yourself, but the second
|
22
|
-
assumes you want a exception raised on failure.
|
20
|
+
The first example lets you handle a failure of a command yourself, but the second
|
21
|
+
example assumes you want a exception raised on failure(e.g: command exits with
|
22
|
+
a non-0 status code).
|
23
23
|
|
24
24
|
__1.__
|
25
25
|
|
@@ -27,7 +27,7 @@ __1.__
|
|
27
27
|
if command.success?
|
28
28
|
puts command.stdout
|
29
29
|
else
|
30
|
-
puts "Looks like
|
30
|
+
puts "Looks like `ls` had problems executing."
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|