opsicle 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opsicle/commands/failure_log.rb +9 -5
- data/lib/opsicle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a8d0c6948774c70b2662bc2d7e9cc99a284aa0f
|
4
|
+
data.tar.gz: 6dc3f1887fdcf0a7ddbb79a6ee514fbf6b4b788c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fd1ab7e363e8078657845b42926321bee866398dde1317bccccaf5f30c45db3c443a9a1ad2cc407348a45bed19bf91aef925457ad3f88ac82be562f876adf07
|
7
|
+
data.tar.gz: c111d7ce6a6c47daac25c1b3349004688e7766e1c0e3e792a3488d043706f6bfdf8642c3c731f2e96cc60944c1c8dcb1b906e27e8248d4d326f06e1c9c459ef3
|
@@ -21,13 +21,17 @@ module Opsicle
|
|
21
21
|
failed_deployment_id = failed_deployments.first.deployment_id
|
22
22
|
failed_deployments_instances = failed_deployments.first.instance_ids
|
23
23
|
|
24
|
-
|
24
|
+
unless failed_deployments_instances.empty?
|
25
|
+
involved_instance_id = fetch_instance_id(failed_deployments_instances)
|
25
26
|
|
26
|
-
|
27
|
-
|
27
|
+
target_failed_command = fetch_target_command(involved_instance_id, failed_deployment_id)
|
28
|
+
log_url = target_failed_command.first.log_url
|
28
29
|
|
29
|
-
|
30
|
-
|
30
|
+
system("open", log_url) if log_url
|
31
|
+
puts "Unable to find a url to open." unless log_url
|
32
|
+
else
|
33
|
+
puts "There is at least one failed deployment, but there is no log available for that failure."
|
34
|
+
end
|
31
35
|
else
|
32
36
|
puts "No failed deployments in available history."
|
33
37
|
end
|
data/lib/opsicle/version.rb
CHANGED