ruby-unix-now 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -10
- metadata +2 -2
data/README.md
CHANGED
@@ -51,16 +51,7 @@ With Run
|
|
51
51
|
run :rm, :r, :f, to
|
52
52
|
run :cp, :r, from, to
|
53
53
|
|
54
|
-
Run also helps you along with some other common scenarios, such as aborting on error and echoing commands as they are executed.
|
55
|
-
|
56
|
-
If we want to check that the backtick command ran successfully, we have to add more code
|
57
|
-
|
58
|
-
unless $?.success?
|
59
|
-
'Ohoh'
|
60
|
-
exit -1
|
61
|
-
end
|
62
|
-
|
63
|
-
Run will by default raise an exception, but you can also configure it to exit with an error message.
|
54
|
+
Run also helps you along with some other common scenarios, such as aborting on error and echoing commands as they are executed.
|
64
55
|
|
65
56
|
## More examples
|
66
57
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-unix-now
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tor Erik Linnerud
|
@@ -13,7 +13,7 @@ date: 2009-11-26 00:00:00 +00:00
|
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description: A
|
16
|
+
description: A one file library which bridges the gap between ruby code and system commands. No more string concatenation to build up commands.
|
17
17
|
email: tel@jklm.no
|
18
18
|
executables: []
|
19
19
|
|