bio-commandeer 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +6 -1
- data/VERSION +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d1436e7c7b10bdcdf1a2924bdf1e2449a6f69da
|
4
|
+
data.tar.gz: fefffaf42425620e2eaa40a1a03a1b4d54430a5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 476d9922c20d8975144843baa7f8e6ca1cc4bc6fb64ebbaf20a70dcfe7f6f74d3f419e99e16dd9ffecee6a81bbea54ba6533f5ea32fbe2ec796565be4a1f1f95
|
7
|
+
data.tar.gz: 286e80621fc7112211486b89301d7c0b3343e05068b453f1e411c6c1b1bfd5144e70ccc919d29742fa41435b7cb89743a8648e5931a084ba5179801cd6d8af2b
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -9,6 +9,7 @@ require 'bio-commandeer'
|
|
9
9
|
Bio::Commandeer.run 'echo 5' #=> "5\n"
|
10
10
|
```
|
11
11
|
The real advantage of bio-commandeer is that when something goes wrong, it tells you; you don't have go looking for the error. Take for instance this simple script:
|
12
|
+
|
12
13
|
```ruby
|
13
14
|
#!/usr/bin/env ruby
|
14
15
|
require 'bio-commandeer'
|
@@ -16,6 +17,7 @@ print Bio::Commandeer.run('echo 5')
|
|
16
17
|
print Bio::Commandeer.run('cat /not_a_file')
|
17
18
|
```
|
18
19
|
The output is:
|
20
|
+
|
19
21
|
```sh
|
20
22
|
5
|
21
23
|
<snip>/lib/bio-commandeer/commandeer.rb:32:in `run': Command returned non-zero exit status (1), likely indicating failure. Command run was cat /not_a_file and the STDERR was: (Bio::CommandFailedException)
|
@@ -30,17 +32,20 @@ Note: this software is under active development! Currently it is perhaps overly
|
|
30
32
|
|
31
33
|
## Logging
|
32
34
|
Commands run are logged with level info, if requested:
|
35
|
+
|
33
36
|
```ruby
|
34
37
|
require 'bio-commandeer'
|
35
38
|
Bio::Log::CLI.logger("stderr"); Bio::Log::CLI.trace("info");
|
36
39
|
puts Bio::Commandeer.run 'echo 5', :log=>true
|
37
40
|
```
|
38
41
|
On stderr this gives
|
42
|
+
|
39
43
|
```
|
40
44
|
INFO bio-commandeer: Running command: echo 5
|
41
45
|
INFO bio-commandeer: Command finished with exitstatus 0
|
42
46
|
```
|
43
47
|
Or a logging can be given directly, so long as it has an `info` method:
|
48
|
+
|
44
49
|
```ruby
|
45
50
|
Bio::Commandeer.run 'echo 5', :log=>my_logger
|
46
51
|
```
|
@@ -58,5 +63,5 @@ This Biogem is published at (http://biogems.info/index.html#bio-commandeer)
|
|
58
63
|
|
59
64
|
## Copyright
|
60
65
|
|
61
|
-
Copyright (c) 2014 Ben J. Woodcroft. See LICENSE.txt for further details.
|
66
|
+
Copyright (c) 2014-2015 Ben J. Woodcroft. See LICENSE.txt for further details.
|
62
67
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-commandeer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben J. Woodcroft
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '4.2'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '4.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: jeweler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|