unix_commander 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -2
- data/lib/unix_commander/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -35,6 +35,7 @@ comm.cat("file").tail("-n10").grep("'something'").run
|
|
35
35
|
```
|
36
36
|
|
37
37
|
You can use redirection too
|
38
|
+
|
38
39
|
```
|
39
40
|
require 'unix_commander'
|
40
41
|
|
@@ -42,7 +43,6 @@ comm = UnixCommander::Command.new
|
|
42
43
|
comm.cat("file").tail("-n10").grep("'something'").out_to("my_file").err_to("/dev/null")
|
43
44
|
```
|
44
45
|
|
45
|
-
>>>>>>> development
|
46
46
|
You don't have to run the commands right away, we can create a command and run it whe we see fit:
|
47
47
|
|
48
48
|
```
|
@@ -51,7 +51,7 @@ require 'unix_commander'
|
|
51
51
|
comm = UnixCommander::Command.new
|
52
52
|
comm = comm.cat("file").tail("-n10").grep("'something'")
|
53
53
|
|
54
|
-
|
54
|
+
#...
|
55
55
|
|
56
56
|
comm.run
|
57
57
|
```
|
@@ -67,6 +67,7 @@ comm.cat("file").tail("-n10").grep("'something'").run_ssh("Batou99","secret","re
|
|
67
67
|
```
|
68
68
|
|
69
69
|
After running a command you can access it output using **out**, **err** or **both**
|
70
|
+
|
70
71
|
```
|
71
72
|
require 'unix_commander'
|
72
73
|
|
@@ -77,6 +78,7 @@ comm.cat("file").tail("-n10").grep("'something'").run_ssh("Batou99","secret","re
|
|
77
78
|
# Or
|
78
79
|
comm.cat("file").tail("-n10").grep("'something'").run_ssh("Batou99","secret","remote_server").both
|
79
80
|
```
|
81
|
+
|
80
82
|
## Contributing
|
81
83
|
|
82
84
|
1. Fork it
|