execute_shell 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/execute_shell.gemspec +2 -2
- data/lib/execute_shell/execute_shell.rb +10 -1
- metadata +3 -3
data/execute_shell.gemspec
CHANGED
@@ -41,7 +41,16 @@ module ExecuteShell
|
|
41
41
|
# [path : String : Dir.getwd] The path to use for the command.
|
42
42
|
# ==== Output
|
43
43
|
# [Boolean] Whether the shell execution was successful.
|
44
|
-
#
|
44
|
+
#
|
45
|
+
# This is determined in two ways.
|
46
|
+
# The first is if anything is sent to stderr.
|
47
|
+
# The second is whether any exceptions occurred.
|
48
|
+
#
|
49
|
+
# [String] The output from the shell command.
|
50
|
+
#
|
51
|
+
# This will include any messages sent to stderr,
|
52
|
+
# as well as those sent to stdout.
|
53
|
+
# Any exceptions are included in this return value, as well.
|
45
54
|
def shell(command, path = Dir.getwd)
|
46
55
|
raise_not_implemented(__method__) unless
|
47
56
|
[:linux, :mingw].include?(Platform::IMPL)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Travis Herrick
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-07
|
17
|
+
date: 2011-08-07 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|