cody 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7a7aef69b13119002518200397cd29e961a44bcc5b1af86ee8b7b10257e79bb
4
- data.tar.gz: 7c5da7d1e3a0f1387df351d86ae77c28b8dde56554461c69085c71c7cdf61764
3
+ metadata.gz: 88a3ea8598603639f718e4f0abccdde3c1a1f822be72cb2f4394dffccc7cbd14
4
+ data.tar.gz: 0ca4437cbc6574b4b33f180808fc131ab2631ce73b49f387321936f3937390c7
5
5
  SHA512:
6
- metadata.gz: d7d882be7a9814bba876894c67f4fbe436893d97882d6cfab2af80b56dd39df89ddb126f208da8b13e3df6d18eef3375850cc6522158014047d41ff10f8e9cc3
7
- data.tar.gz: 4023dfde8116141efe8a83be416882c6d44c64bdd228918bee6ac13735d8d706b3474fcbe2b4cb623f1e2241437a00d92093f998fb1ff34ff86e68cb814c4d8b
6
+ metadata.gz: 492d26d995e252031c78b306e49ea494d823f657ea7c80e94fa053732cfe6ebd285ef098478a9bfc72c234504dac214621a9d49abcb119a377c94fa77e428846
7
+ data.tar.gz: '0299c29a77b4534be575aac58d38bd5c2da97f913ecc876eb8c1b4141b22005034c537581515f0825ac2f8e9d66e2f93c9fe659d71be608e532e8c86b6785f4a'
@@ -3,6 +3,11 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [1.0.3] - 2021-01-08
7
+ - [#31](https://github.com/tongueroo/cody/pull/31) surface context message with error message for during provisioning fa…
8
+ - docs: update ci jets v3
9
+ - raise error option
10
+
6
11
  ## [1.0.2]
7
12
  - #30 Allow multiple git providers
8
13
 
@@ -54,8 +54,13 @@ class Cody::CLI
54
54
  end
55
55
  resource.physical_resource_id # codebuild project name
56
56
  else
57
- puts "ERROR: Unable to find the codebuild project with either full_project_name: #{@full_project_name} or project_name: #{@project_name}".color(:red)
58
- exit 1
57
+ message = "ERROR: Unable to find the codebuild project with either full_project_name: #{@full_project_name} or project_name: #{@project_name}"
58
+ if @options[:raise_error]
59
+ raise(message)
60
+ else
61
+ puts message.color(:red)
62
+ exit 1
63
+ end
59
64
  end
60
65
  end
61
66
 
@@ -54,6 +54,14 @@ module Cody
54
54
  puts "Failed Phases:"
55
55
  failed_phases.each do |phase|
56
56
  puts "#{phase.phase_type}: #{phase.phase_status.color(:red)}"
57
+ context = phase.contexts.last
58
+ if context # show error details: Unable to pull customer's container image https://gist.github.com/tongueroo/22e4ca3d4cde002108ff506eba9062f6
59
+ message = context.message
60
+ puts message
61
+ if message.include?("CannotPullContainerError") && message.include?("access denied")
62
+ puts "See: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-ecr.html"
63
+ end
64
+ end
57
65
  end
58
66
  end
59
67
 
@@ -1,3 +1,3 @@
1
1
  module Cody
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cody
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-15 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -387,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
387
387
  - !ruby/object:Gem::Version
388
388
  version: '0'
389
389
  requirements: []
390
- rubygems_version: 3.1.2
390
+ rubygems_version: 3.1.4
391
391
  signing_key:
392
392
  specification_version: 4
393
393
  summary: Cody provides a beautiful DSL to create and manage AWS CodeBuild projects