opsicle 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7c60c0212ad5626778f928fec737322f86a5a6f
4
- data.tar.gz: c0a6568a58e989b40f014326d457a776ea421ead
3
+ metadata.gz: 8a8d0c6948774c70b2662bc2d7e9cc99a284aa0f
4
+ data.tar.gz: 6dc3f1887fdcf0a7ddbb79a6ee514fbf6b4b788c
5
5
  SHA512:
6
- metadata.gz: 50e99858c9decebd5a3159b79b1c76863b40c78bdb997b48e180c98ff94536317e558c1b83264fbd6b7eb0ac2b1fc1fa093c506f5743a655c07805d20c8c51b5
7
- data.tar.gz: 15191e53bd2bed9c7c6d11fd3a1b9c5f856c82264365675c1f0dca810de0a287324037123115517ef1cb9a3762a3fa0043757ab98faf7265495123bb183cd364
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
- involved_instance_id = fetch_instance_id(failed_deployments_instances)
24
+ unless failed_deployments_instances.empty?
25
+ involved_instance_id = fetch_instance_id(failed_deployments_instances)
25
26
 
26
- target_failed_command = fetch_target_command(involved_instance_id, failed_deployment_id)
27
- log_url = target_failed_command.first.log_url
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
- system("open", log_url) if log_url
30
- puts "Unable to find a url to open." unless log_url
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
@@ -1,3 +1,3 @@
1
1
  module Opsicle
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opsicle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Fleener