zazu 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zazu.rb +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee7ead248420bb8de0dd041ffada158ecce3f645217b6e8921b13c7535977dfb
|
4
|
+
data.tar.gz: 877678bc6130edaa2465413b07819423d902c24f224e0d4f648b6c10f3313d43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1367466628c3c8187aa3addce9fa9515ace929d7596d718fd65ae887e10be09f2754bedaf5566c560ab6ab26d96df47cc97d82a2fbeeac57f38a59fb1fd772c2
|
7
|
+
data.tar.gz: b47988695e579a6cc566bae650d3172717059b581cf4d18b6aa5233d84a82daf512f99fb6493b7b0b8fd245c9b2db4f97c2dd87b86ea295ec9a83620aeded1f9
|
data/lib/zazu.rb
CHANGED
@@ -17,7 +17,7 @@ require 'uri'
|
|
17
17
|
# zazu.run ['--environment', 'prod']
|
18
18
|
#
|
19
19
|
class Zazu
|
20
|
-
VERSION = '0.0.
|
20
|
+
VERSION = '0.0.3'
|
21
21
|
|
22
22
|
class Error < Exception; end
|
23
23
|
class DownloadError < Error; end
|
@@ -37,7 +37,8 @@ class Zazu
|
|
37
37
|
@logger.level = level
|
38
38
|
end
|
39
39
|
|
40
|
-
# Download the tool, to the temp directory
|
40
|
+
# Download the tool, to the temp directory. Raises a DownloadError on HTTP error.
|
41
|
+
#
|
41
42
|
# * +:url:+ - The URL to the tool--Optional, can specity the block instead
|
42
43
|
# * +:age:+ - Seconds old the downloaded copy can be before downloading again--Default is 3600
|
43
44
|
# * +:block:+ - Receives the OS (:linux, :mac, :windows) and the machine arch (32 or 64)--Should return the URL
|
@@ -50,7 +51,9 @@ class Zazu
|
|
50
51
|
download_file url
|
51
52
|
end
|
52
53
|
|
53
|
-
# Run the downloaded tool with arguments
|
54
|
+
# Run the downloaded tool with arguments Raises a RunError if the command
|
55
|
+
# exits with nonzero.
|
56
|
+
#
|
54
57
|
# * +:args:+ - An array of args for the command
|
55
58
|
# * +:show:+ - A regexp of output (STDOUT and STDERR) to include
|
56
59
|
# * +:hide:+ - A regexp of output (STDOUT and STDERR) to exclude
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zazu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Calhoun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|