codebuild 0.4.0 → 0.5.0

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: 5614b3e4b06a4b51c4057d1546c76813a7993b99f47310d7a0f221b64cbdcbbb
4
- data.tar.gz: cc65ce705c47211ac74db8cf66a591de4976e659381557663b1f3ef2a386d1b1
3
+ metadata.gz: 33951b000f2bf84f71be30e140a7a4695a682ad8968c436d42a5db5d7d67fa28
4
+ data.tar.gz: a733a751be68e8dad431a18497f2b9cd7519ff5de0713f64d63f5c5d59617080
5
5
  SHA512:
6
- metadata.gz: 695484589a80ba4ae8a0c1f2b8169290500df74e163938d72ec7bc9f17c48d08d8d64cb9af351105b52a3d2df1d87dcafb25af32c773ee1d75f428d6d1a45d37
7
- data.tar.gz: 200fbe445ed597192351b897eadeabf148ea9e45e1a695efd3aeec107e7529dbf01eb0cc1563bbc87f662745fce1fc7d03cdd27327018efa6137d3a17b5f9d94
6
+ metadata.gz: d7884e4ec583b5f79432d7e90ebc8f8f990cb65a9449582570ce4c1aa2b77be17790198c743536daa04de9fc553228f16f3577718d79308dd60f27bb2ca7615e
7
+ data.tar.gz: aed632aa572e849971a1d26db326796615499b25bf4748b5a9932ceef9f1f5ca86914062d5efa887f1dcd1a9f1bf96a32ab785e9c01fd21dc95488df53f9add4
@@ -0,0 +1,13 @@
1
+ base:
2
+ # stack_naming:
3
+ # append_env: true # default false
4
+
5
+ development:
6
+ # cluster: development
7
+ # The aws_profile tightly binds CB_ENV to AWS_PROFILE and vice-versa.
8
+ # aws_profile: dev_profile
9
+
10
+ production:
11
+ # cluster: production
12
+ # The aws_profile tightly binds CB_ENV to AWS_PROFILE and vice-versa.
13
+ # aws_profile: prod_profile
data/CHANGELOG.md CHANGED
@@ -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
+ ## [0.5.0]
7
+ - add --wait option
8
+ - change default append_env setting to false
9
+ - fix default iam policy
10
+
6
11
  ## [0.4.0]
7
12
  - Add managed_iam_policy support
8
13
  - #2 Add schedule dsl
data/lib/codebuild/cli.rb CHANGED
@@ -13,6 +13,7 @@ module Codebuild
13
13
  common_options = Proc.new do
14
14
  option :type, desc: "folder to use within .codebuild folder for different build types"
15
15
  option :stack_name, desc: "Override the generated stack name. If you use this you must always specify it"
16
+ option :wait, type: :boolean, default: true, desc: "Wait for operation to complete"
16
17
  end
17
18
 
18
19
  desc "deploy", "Deploy codebuild project."
@@ -1,3 +1,3 @@
1
1
  base:
2
2
  stack_naming:
3
- append_env: true
3
+ append_env: false
@@ -20,9 +20,9 @@ module Codebuild
20
20
  version: "2012-10-17",
21
21
  statement: derived_iam_statements
22
22
  }
23
- }] unless @iam_statements.empty?
23
+ }]
24
24
 
25
- @properties[:managed_policy_arns] = @managed_policy_arns if !@managed_policy_arns&.empty?
25
+ @properties[:managed_policy_arns] = @managed_policy_arns if @managed_policy_arns && !@managed_policy_arns.empty?
26
26
 
27
27
  resource = {
28
28
  IamRole: {
@@ -48,6 +48,7 @@ module Codebuild
48
48
  begin
49
49
  perform
50
50
  url_info
51
+ return unless @options[:wait]
51
52
  status.wait
52
53
  exit 2 unless status.success?
53
54
  rescue Aws::CloudFormation::Errors::ValidationError => e
@@ -1,3 +1,3 @@
1
1
  module Codebuild
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  base:
2
2
  # stack_naming:
3
- # append_env: false # default true
3
+ # append_env: true # default false
4
4
 
5
5
  development:
6
6
  # cluster: development
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
@@ -217,6 +217,7 @@ extra_rdoc_files: []
217
217
  files:
218
218
  - ".codebuild/buildspec.yml"
219
219
  - ".codebuild/project.rb"
220
+ - ".codebuild/settings.yml"
220
221
  - ".gitignore"
221
222
  - ".gitmodules"
222
223
  - ".rspec"