codebuild 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/codebuild.gemspec +8 -3
  4. data/lib/codebuild/version.rb +1 -1
  5. data/vendor/aws_data/CHANGELOG.md +7 -0
  6. data/vendor/aws_data/Gemfile +4 -0
  7. data/{docs/LICENSE → vendor/aws_data/LICENSE.txt} +4 -4
  8. data/vendor/aws_data/README.md +42 -0
  9. data/vendor/aws_data/Rakefile +6 -0
  10. data/vendor/aws_data/aws_data.gemspec +30 -0
  11. data/vendor/aws_data/bin/console +14 -0
  12. data/vendor/aws_data/bin/setup +8 -0
  13. data/vendor/aws_data/lib/aws_data.rb +91 -0
  14. data/vendor/aws_data/lib/aws_data/version.rb +3 -0
  15. data/vendor/aws_data/spec/aws_data_spec.rb +5 -0
  16. data/vendor/aws_data/spec/spec_helper.rb +14 -0
  17. data/vendor/cfn-status/Gemfile +4 -0
  18. data/vendor/cfn-status/LICENSE.txt +21 -0
  19. data/vendor/cfn-status/README.md +56 -0
  20. data/vendor/cfn-status/Rakefile +6 -0
  21. data/vendor/cfn-status/bin/console +14 -0
  22. data/vendor/cfn-status/bin/setup +8 -0
  23. data/vendor/cfn-status/cfn-status.gemspec +30 -0
  24. data/vendor/cfn-status/lib/cfn/aws_service.rb +56 -0
  25. data/vendor/cfn-status/lib/cfn/status.rb +220 -0
  26. data/vendor/cfn-status/lib/cfn/status/version.rb +5 -0
  27. data/vendor/cfn-status/spec/cfn/status_spec.rb +81 -0
  28. data/vendor/cfn-status/spec/fixtures/cfn/stack-events-complete.json +1080 -0
  29. data/vendor/cfn-status/spec/fixtures/cfn/stack-events-in-progress.json +1080 -0
  30. data/vendor/cfn-status/spec/fixtures/cfn/stack-events-update-rollback-complete.json +1086 -0
  31. data/vendor/cfn-status/spec/spec_helper.rb +14 -0
  32. data/vendor/cfn_camelizer/CHANGELOG.md +10 -0
  33. data/vendor/cfn_camelizer/Gemfile +4 -0
  34. data/vendor/cfn_camelizer/LICENSE.txt +21 -0
  35. data/vendor/cfn_camelizer/README.md +40 -0
  36. data/vendor/cfn_camelizer/Rakefile +6 -0
  37. data/vendor/cfn_camelizer/bin/console +14 -0
  38. data/vendor/cfn_camelizer/bin/setup +8 -0
  39. data/vendor/cfn_camelizer/cfn_camelizer.gemspec +32 -0
  40. data/vendor/cfn_camelizer/lib/camelizer.yml +33 -0
  41. data/vendor/cfn_camelizer/lib/cfn_camelizer.rb +92 -0
  42. data/vendor/cfn_camelizer/lib/cfn_camelizer/version.rb +3 -0
  43. data/vendor/cfn_camelizer/spec/cfn_camelizer_spec.rb +79 -0
  44. data/vendor/cfn_camelizer/spec/spec_helper.rb +14 -0
  45. metadata +46 -173
  46. data/docs/.gitignore +0 -4
  47. data/docs/CNAME +0 -1
  48. data/docs/Gemfile +0 -3
  49. data/docs/README.md +0 -25
  50. data/docs/_config.yml +0 -73
  51. data/docs/_docs/contributing.md +0 -99
  52. data/docs/_docs/conventions.md +0 -51
  53. data/docs/_docs/deploy.md +0 -69
  54. data/docs/_docs/dsl.md +0 -12
  55. data/docs/_docs/dsl/project.md +0 -80
  56. data/docs/_docs/dsl/role.md +0 -79
  57. data/docs/_docs/dsl/schedule.md +0 -29
  58. data/docs/_docs/examples.md +0 -12
  59. data/docs/_docs/examples/ecs.md +0 -107
  60. data/docs/_docs/examples/jets.md +0 -79
  61. data/docs/_docs/examples/ruby.md +0 -44
  62. data/docs/_docs/github_oauth.md +0 -51
  63. data/docs/_docs/install.md +0 -14
  64. data/docs/_docs/next-steps.md +0 -16
  65. data/docs/_docs/settings.md +0 -34
  66. data/docs/_docs/start.md +0 -51
  67. data/docs/_docs/type-option.md +0 -72
  68. data/docs/_docs/variables.md +0 -117
  69. data/docs/_includes/commands.html +0 -88
  70. data/docs/_includes/content.html +0 -25
  71. data/docs/_includes/edit-on-github.html +0 -9
  72. data/docs/_includes/examples-steps.md +0 -17
  73. data/docs/_includes/footer.html +0 -41
  74. data/docs/_includes/google_analytics.html +0 -10
  75. data/docs/_includes/head.html +0 -45
  76. data/docs/_includes/js.html +0 -15
  77. data/docs/_includes/nav.html +0 -17
  78. data/docs/_includes/prev_next.md +0 -19
  79. data/docs/_includes/reference.md +0 -1
  80. data/docs/_includes/subnav.html +0 -38
  81. data/docs/_includes/tutorials.md +0 -38
  82. data/docs/_layouts/default.html +0 -12
  83. data/docs/_reference/cb-completion.md +0 -44
  84. data/docs/_reference/cb-completion_script.md +0 -25
  85. data/docs/_reference/cb-delete.md +0 -26
  86. data/docs/_reference/cb-deploy.md +0 -58
  87. data/docs/_reference/cb-init.md +0 -88
  88. data/docs/_reference/cb-start.md +0 -43
  89. data/docs/_reference/cb-version.md +0 -21
  90. data/docs/_sass/_bootstrap-overrides.scss +0 -40
  91. data/docs/_sass/_contact.scss +0 -49
  92. data/docs/_sass/_cta.scss +0 -37
  93. data/docs/_sass/_download.scss +0 -31
  94. data/docs/_sass/_features.scss +0 -47
  95. data/docs/_sass/_footer.scss +0 -49
  96. data/docs/_sass/_global.scss +0 -102
  97. data/docs/_sass/_main.scss +0 -364
  98. data/docs/_sass/_masthead.scss +0 -70
  99. data/docs/_sass/_mixins.scss +0 -79
  100. data/docs/_sass/_navbar.scss +0 -92
  101. data/docs/_sass/_syntax.scss +0 -65
  102. data/docs/_sass/_table.scss +0 -34
  103. data/docs/_sass/_timeline.scss +0 -207
  104. data/docs/_sass/_variables.scss +0 -24
  105. data/docs/bin/web +0 -8
  106. data/docs/docs.md +0 -22
  107. data/docs/img/docs/codebuild-output.png +0 -0
  108. data/docs/img/logos/boltops-logo-full.png +0 -0
  109. data/docs/img/logos/boltops-logo.png +0 -0
  110. data/docs/img/logos/project-logo.png +0 -0
  111. data/docs/index.html +0 -35
  112. data/docs/js/nav.js +0 -39
  113. data/docs/js/new-age.js +0 -38
  114. data/docs/js/new-age.min.js +0 -6
  115. data/docs/new-age.scss +0 -20
  116. data/docs/quick-start.md +0 -72
  117. data/docs/reference.md +0 -12
  118. data/docs/support.md +0 -22
  119. data/docs/vendor/bootstrap/css/bootstrap-grid.css +0 -1339
  120. data/docs/vendor/bootstrap/css/bootstrap-grid.css.map +0 -1
  121. data/docs/vendor/bootstrap/css/bootstrap-grid.min.css +0 -1
  122. data/docs/vendor/bootstrap/css/bootstrap-grid.min.css.map +0 -1
  123. data/docs/vendor/bootstrap/css/bootstrap-reboot.css +0 -459
  124. data/docs/vendor/bootstrap/css/bootstrap-reboot.css.map +0 -1
  125. data/docs/vendor/bootstrap/css/bootstrap-reboot.min.css +0 -1
  126. data/docs/vendor/bootstrap/css/bootstrap-reboot.min.css.map +0 -1
  127. data/docs/vendor/bootstrap/css/bootstrap.css +0 -9320
  128. data/docs/vendor/bootstrap/css/bootstrap.css.map +0 -1
  129. data/docs/vendor/bootstrap/css/bootstrap.min.css +0 -6
  130. data/docs/vendor/bootstrap/css/bootstrap.min.css.map +0 -1
  131. data/docs/vendor/bootstrap/js/bootstrap.js +0 -3535
  132. data/docs/vendor/bootstrap/js/bootstrap.min.js +0 -7
  133. data/docs/vendor/font-awesome/css/font-awesome.css +0 -2337
  134. data/docs/vendor/font-awesome/css/font-awesome.min.css +0 -4
  135. data/docs/vendor/font-awesome/fonts/FontAwesome.otf +0 -0
  136. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  137. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.svg +0 -2671
  138. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  139. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  140. data/docs/vendor/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
  141. data/docs/vendor/font-awesome/less/animated.less +0 -34
  142. data/docs/vendor/font-awesome/less/bordered-pulled.less +0 -25
  143. data/docs/vendor/font-awesome/less/core.less +0 -12
  144. data/docs/vendor/font-awesome/less/fixed-width.less +0 -6
  145. data/docs/vendor/font-awesome/less/font-awesome.less +0 -18
  146. data/docs/vendor/font-awesome/less/icons.less +0 -789
  147. data/docs/vendor/font-awesome/less/larger.less +0 -13
  148. data/docs/vendor/font-awesome/less/list.less +0 -19
  149. data/docs/vendor/font-awesome/less/mixins.less +0 -60
  150. data/docs/vendor/font-awesome/less/path.less +0 -15
  151. data/docs/vendor/font-awesome/less/rotated-flipped.less +0 -20
  152. data/docs/vendor/font-awesome/less/screen-reader.less +0 -5
  153. data/docs/vendor/font-awesome/less/stacked.less +0 -20
  154. data/docs/vendor/font-awesome/less/variables.less +0 -799
  155. data/docs/vendor/font-awesome/scss/_animated.scss +0 -34
  156. data/docs/vendor/font-awesome/scss/_bordered-pulled.scss +0 -25
  157. data/docs/vendor/font-awesome/scss/_core.scss +0 -12
  158. data/docs/vendor/font-awesome/scss/_fixed-width.scss +0 -6
  159. data/docs/vendor/font-awesome/scss/_icons.scss +0 -789
  160. data/docs/vendor/font-awesome/scss/_larger.scss +0 -13
  161. data/docs/vendor/font-awesome/scss/_list.scss +0 -19
  162. data/docs/vendor/font-awesome/scss/_mixins.scss +0 -60
  163. data/docs/vendor/font-awesome/scss/_path.scss +0 -15
  164. data/docs/vendor/font-awesome/scss/_rotated-flipped.scss +0 -20
  165. data/docs/vendor/font-awesome/scss/_screen-reader.scss +0 -5
  166. data/docs/vendor/font-awesome/scss/_stacked.scss +0 -20
  167. data/docs/vendor/font-awesome/scss/_variables.scss +0 -799
  168. data/docs/vendor/font-awesome/scss/font-awesome.scss +0 -18
  169. data/docs/vendor/jquery-easing/jquery.easing.compatibility.js +0 -59
  170. data/docs/vendor/jquery-easing/jquery.easing.js +0 -166
  171. data/docs/vendor/jquery-easing/jquery.easing.min.js +0 -1
  172. data/docs/vendor/jquery/jquery.js +0 -10253
  173. data/docs/vendor/jquery/jquery.min.js +0 -4
  174. data/docs/vendor/simple-line-icons/css/simple-line-icons.css +0 -778
  175. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.eot +0 -0
  176. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.svg +0 -200
  177. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.ttf +0 -0
  178. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.woff +0 -0
  179. data/docs/vendor/simple-line-icons/fonts/Simple-Line-Icons.woff2 +0 -0
  180. data/docs/vendor/simple-line-icons/less/simple-line-icons.less +0 -982
  181. data/docs/vendor/simple-line-icons/scss/simple-line-icons.scss +0 -979
  182. data/docs/vendor/tether/tether.js +0 -1811
  183. data/docs/vendor/tether/tether.min.js +0 -1
  184. data/spec/fixtures/app/.codebuild/project.rb +0 -2
  185. data/spec/fixtures/app/.codebuild/role.rb +0 -1
  186. data/spec/fixtures/app/.codebuild/schedule.rb +0 -1
  187. data/spec/fixtures/app/.codebuild/settings.yml +0 -13
  188. data/spec/lib/cli_spec.rb +0 -13
  189. data/spec/lib/project_spec.rb +0 -12
  190. data/spec/lib/role_spec.rb +0 -12
  191. data/spec/lib/schedule_spec.rb +0 -12
  192. data/spec/spec_helper.rb +0 -35
@@ -1,17 +0,0 @@
1
- <!-- Navigation -->
2
- <nav class="navbar fixed-top navbar-toggleable-md navbar-light" id="mainNav">
3
- <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarExample" aria-controls="navbarExample" aria-expanded="false" aria-label="Toggle navigation">
4
- Menu <i class="fa fa-bars"></i>
5
- </button>
6
- <div class="container">
7
- <a class="navbar-brand" href="/#page-top"><img class="navbar-logo" src="/img/logos/project-logo.png" />CodeBuild</a>
8
- <div class="collapse navbar-collapse" id="navbarExample">
9
- <ul class="navbar-nav ml-auto">
10
- <li class="nav-item"><a class="nav-link" href="{% link quick-start.md %}">Quick Start</a></li>
11
- <li class="nav-item"><a class="nav-link" href="{% link docs.md %}">Docs</a></li>
12
- <li class="nav-item"><a class="nav-link" href="{% link support.md %}">Support</a></li>
13
- <li class="nav-item"><a class="nav-link" href="https://github.com/tongueroo/codebuild">GitHub</a></li>
14
- </ul>
15
- </div>
16
- </div>
17
- </nav>
@@ -1,19 +0,0 @@
1
- {% assign all_pages = site.pages | concat: site.docs | where_exp: "item", "item.nav_order" %}
2
- {% assign links = all_pages | sort: "nav_order" %}
3
- {% for link in links %}
4
- {% if link.url == page.url %}
5
- {% unless forloop.first %}
6
- {% assign prev = tmpprev %}
7
- {% endunless %}
8
- {% if forloop.last %}
9
- {% assign last = "/reference" %}
10
- {% else %}
11
- {% assign next = links[forloop.index] %}
12
- {% endif %}
13
- {% endif %}
14
- {% assign tmpprev = link %}
15
- {% endfor %}
16
-
17
- {% if prev %}<a id="prev" class="btn btn-basic" href="{{ prev.url }}">Back</a>{% endif %}{% if last %}<a id="next" class="btn btn-primary" href="/reference">Next Step</a>{% endif %}
18
- {% if next %}<a id="next" class="btn btn-primary" href="{{ next.url }}">Next Step</a>{% endif %}
19
- <p class="keyboard-tip">Pro tip: Use the <- and -> arrow keys to move back and forward.</p>
@@ -1 +0,0 @@
1
- Codebuild is a tool that simplifies the process of creating CodeBuild projects. It does this by providing a DSL to create a CodeBuild project with some reasonable defaults.
@@ -1,38 +0,0 @@
1
- <div class="col-md-3 content-nav">
2
- <ul>
3
- <li><a href="{% link quick-start.md %}">Quick Start</a></li>
4
- <li><a href="{% link docs.md %}">Docs</a>
5
- <ul class="docs">
6
- <li><a href="{% link _docs/install.md %}">Install</a></li>
7
- <li><a href="{% link _docs/type-option.md %}">Type Option</a></li>
8
- <li><a href="{% link _docs/variables.md %}">Variables Support</a></li>
9
- <li><a href="{% link _docs/deploy.md %}">Deploy</a></li>
10
- <li><a href="{% link _docs/start.md %}">Start</a></li>
11
- <li><a href="{% link _docs/settings.md %}">Settings</a></li>
12
- <li><a href="{% link _docs/conventions.md %}">Conventions</a></li>
13
- <li><a href="{% link _docs/github_oauth.md %}">Github Oauth</a></li>
14
- </ul>
15
- </li>
16
- <li><a href="{% link _docs/dsl.md %}">DSL Syntax</a>
17
- <ul>
18
- {% assign docs = site.docs | where: "categories","dsl" %} {% for doc in docs -%}
19
- <li><a href='{{doc.url}}'>{{doc.nav_text}}</a></li>
20
- {% endfor %}
21
- </ul>
22
- </li>
23
- <li><a href="{% link _docs/examples.md %}">Examples</a>
24
- <ul>
25
- {% assign docs = site.docs | where: "categories","example" %} {% for doc in docs -%}
26
- <li><a href='{{doc.url}}'>{{doc.nav_text}}</a></li>
27
- {% endfor %}
28
- </ul>
29
- </li>
30
- <li>More
31
- <ul class="more">
32
- <li><a href="{% link support.md %}">Support</a></li>
33
- <li><a href="{% link _docs/next-steps.md %}">Next Steps</a></li>
34
- <li><a href="{% link reference.md %}">CLI Reference</a></li>
35
- </ul>
36
- </li>
37
- </ul>
38
- </div>
@@ -1,38 +0,0 @@
1
- ## Introducing Jets
2
-
3
- <div class="video-box"><div class="video-container"><iframe src="https://www.youtube.com/embed/17Y3AJl9dw4" frameborder="0" allowfullscreen=""></iframe></div></div>
4
-
5
- ## Jets Introduction Series
6
-
7
- Introductions are focused on AWS fundamental essentials.
8
-
9
- {% assign posts = site.data.intro_series %}
10
- {% for post in posts %}
11
- * [{{ post.title }}]({{ post.url }}){% endfor %}
12
-
13
- ## Jets Tutorial Series
14
-
15
- Tutorials are focused on Jets fundamentals.
16
-
17
- {% assign posts = site.data.tutorial_series %}
18
- {% for post in posts %}
19
- * [{{ post.title }}]({{ post.url }}){% endfor %}
20
-
21
- ## Jets Articles
22
-
23
- Articles, tutorials, and demos on Jets.
24
-
25
- {% assign posts = site.data.articles %}
26
- {% for post in posts %}
27
- * [{{ post.title }}]({{ post.url }}){% endfor %}
28
-
29
- ## Tutorials
30
-
31
- * [HTML ActiveRecord Tutorial]({% link _docs/crud-html-activerecord.md %})
32
- * [JSON ActiveRecord Tutorial]({% link _docs/crud-json-activerecord.md %})
33
-
34
- ## Videos
35
-
36
- {% assign posts = site.data.video_playlists %}
37
- {% for post in posts %}
38
- * [{{ post.title }}]({{ post.url }}){% endfor %}
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- {% include head.html %}
4
- <body id="page-top">
5
- {% include nav.html %}
6
-
7
- {% include content.html %}
8
-
9
- {% include footer.html %}
10
- {% include js.html %}
11
- </body>
12
- </html>
@@ -1,44 +0,0 @@
1
- ---
2
- title: cb completion
3
- reference: true
4
- ---
5
-
6
- ## Usage
7
-
8
- cb completion *PARAMS
9
-
10
- ## Description
11
-
12
- Prints words for auto-completion.
13
-
14
- Example:
15
-
16
- codebuild completion
17
-
18
- Prints words for TAB auto-completion.
19
-
20
- Examples:
21
-
22
- codebuild completion
23
- codebuild completion hello
24
- codebuild completion hello name
25
-
26
- To enable, TAB auto-completion add the following to your profile:
27
-
28
- eval $(codebuild completion_script)
29
-
30
- Auto-completion example usage:
31
-
32
- codebuild [TAB]
33
- codebuild hello [TAB]
34
- codebuild hello name [TAB]
35
- codebuild hello name --[TAB]
36
-
37
-
38
- ## Options
39
-
40
- ```
41
- [--verbose], [--no-verbose]
42
- [--noop], [--no-noop]
43
- ```
44
-
@@ -1,25 +0,0 @@
1
- ---
2
- title: cb completion_script
3
- reference: true
4
- ---
5
-
6
- ## Usage
7
-
8
- cb completion_script
9
-
10
- ## Description
11
-
12
- Generates a script that can be eval to setup auto-completion.
13
-
14
- To use, add the following to your `~/.bashrc` or `~/.profile`
15
-
16
- eval $(codebuild completion_script)
17
-
18
-
19
- ## Options
20
-
21
- ```
22
- [--verbose], [--no-verbose]
23
- [--noop], [--no-noop]
24
- ```
25
-
@@ -1,26 +0,0 @@
1
- ---
2
- title: cb delete
3
- reference: true
4
- ---
5
-
6
- ## Usage
7
-
8
- cb delete
9
-
10
- ## Description
11
-
12
- Delete codebuild project.
13
-
14
-
15
- ## Options
16
-
17
- ```
18
- [--sure=SURE] # Bypass are you sure prompt
19
- [--type=TYPE] # folder to use within .codebuild folder for different build types
20
- [--stack-name=STACK_NAME] # Override the generated stack name. If you use this you must always specify it
21
- [--wait], [--no-wait] # Wait for operation to complete
22
- # Default: true
23
- [--verbose], [--no-verbose]
24
- [--noop], [--no-noop]
25
- ```
26
-
@@ -1,58 +0,0 @@
1
- ---
2
- title: cb deploy
3
- reference: true
4
- ---
5
-
6
- ## Usage
7
-
8
- cb deploy
9
-
10
- ## Description
11
-
12
- Deploy codebuild project.
13
-
14
- ## Examples
15
-
16
- cb deploy PROJECT_NAME # explicitly specify project-name
17
- cb deploy # infers the CodeBuild name from the parent folder
18
-
19
- It is useful to just see the generated CloudFormation template with `--noop` mode:
20
-
21
- cb deploy PROJECT_NAME --noop # see generated CloudFormation template
22
-
23
- ## Types
24
-
25
- By default, the codebuild tool looks up files in the `.codebuild` folder. Example:
26
-
27
- .codebuild/buildspec.yml
28
- .codebuild/project.rb
29
- .codebuild/role.rb
30
-
31
- ### Examples
32
-
33
- cb deploy PROJECT_NAME --type deploy
34
-
35
- This will look up buildspec.yml, project.rb, and role.rb files in the `.codebuild/deploy` folder. So:
36
-
37
- .codebuild/deploy/buildspec.yml
38
- .codebuild/deploy/project.rb
39
- .codebuild/deploy/role.rb
40
-
41
- Likewise `cb deploy PROJECT_NAME --type unit` would result in:
42
-
43
- .codebuild/unit/buildspec.yml
44
- .codebuild/unit/project.rb
45
- .codebuild/unit/role.rb
46
-
47
-
48
- ## Options
49
-
50
- ```
51
- [--type=TYPE] # folder to use within .codebuild folder for different build types
52
- [--stack-name=STACK_NAME] # Override the generated stack name. If you use this you must always specify it
53
- [--wait], [--no-wait] # Wait for operation to complete
54
- # Default: true
55
- [--verbose], [--no-verbose]
56
- [--noop], [--no-noop]
57
- ```
58
-
@@ -1,88 +0,0 @@
1
- ---
2
- title: cb init
3
- reference: true
4
- ---
5
-
6
- ## Usage
7
-
8
- cb init
9
-
10
- ## Description
11
-
12
- Set up initial .codebuild files.
13
-
14
- ## Examples
15
-
16
- cb init # infers the name from the parent folder
17
- cb init my-project # set the name
18
-
19
- ## Type Option
20
-
21
- The type option is useful to generate subfolder under .codebuild that contain another codebuild project. Example:
22
-
23
- cb init --type unit
24
-
25
- Thi generates the cb files under the `.codebuild/unit` folder.
26
-
27
- .codebuild
28
- └── unit
29
- ├── buildspec.yml
30
- ├── project.rb
31
- ├── role.rb
32
- └── schedule.rb
33
-
34
- To tell the codebuild tool to use these files, you specify the `--type` option as a part of the other commands. Examples:
35
-
36
- cb deploy --type unit
37
- cb start --type unit
38
-
39
- ## Structure
40
-
41
- So if you need multiple CodeBuild projects that perform different tasks but are both related to the same code repo, you might have a structure like this:
42
-
43
- .codebuild
44
- ├── deploy
45
- │ ├── buildspec.yml
46
- │ ├── project.rb
47
- │ ├── role.rb
48
- │ └── schedule.rb
49
- └── unit
50
- ├── buildspec.yml
51
- ├── project.rb
52
- ├── role.rb
53
- └── schedule.rb
54
-
55
- ## Custom Templates
56
-
57
- If you would like the `cb init` command to use your own custom templates, you can achieve this with the `--template` and `--template-mode` options. Example:
58
-
59
- cb init --template=tongueroo/codebuild-custom-template
60
-
61
- This will clone the repo on GitHub into the `~/.codebuild/templates/tongueroo/codebuild-custom-template` and use that as an additional template source. The default `--template-mode=additive` mode means that if there's a file in `tongueroo/codebuild-custom-template` that exists it will use that in place of the default template files.
62
-
63
- If you do not want to use any of the original default template files within the codebuild gem at all, you can use the `--template-mode=replace` mode. Replace mode will only use templates from the provided `--template` option. Example:
64
-
65
- cb init --template=tongueroo/codebuild-custom-template --template-mode=replace
66
-
67
- You can also specific the full GitHub url. Example:
68
-
69
- cb init --template=https://github.com/tongueroo/codebuild-custom-template
70
-
71
- If you would like to use a local template that is not on GitHub, then created a top-level folder in `~/.codebuild/templates` without a subfolder. Example:
72
-
73
- cb init --template=my-custom # uses ~/.codebuild/templates/my-custom
74
-
75
-
76
- ## Options
77
-
78
- ```
79
- [--force] # Bypass overwrite are you sure prompt for existing files
80
- [--name=NAME] # CodeBuild project name
81
- [--template=TEMPLATE] # Custom template to use
82
- [--template-mode=TEMPLATE_MODE] # Template mode: replace or additive
83
- [--type=TYPE] # Type option creates a subfolder under .codebuild
84
- [--variables], [--no-variables] # Create variables starter files
85
- [--verbose], [--no-verbose]
86
- [--noop], [--no-noop]
87
- ```
88
-
@@ -1,43 +0,0 @@
1
- ---
2
- title: cb start
3
- reference: true
4
- ---
5
-
6
- ## Usage
7
-
8
- cb start
9
-
10
- ## Description
11
-
12
- start codebuild project.
13
-
14
- # Examples
15
-
16
- cb start # infers the name from the parent folder
17
- cb start stack-name # looks up project via CloudFormation stack
18
- cb start demo-project # looks up project via codebuild project name
19
-
20
- ## Overriding Env Variables at Runtime
21
-
22
- You can override env variables at runtime with `--env-vars`. Examples:
23
-
24
- cb start --type vpc --env-vars K1=v1 K2=v2
25
- cb start --type vpc --env-vars K1=v1 K2=ssm:v2 # support for PARAMETER_STORE
26
-
27
-
28
- ## Options
29
-
30
- ```
31
- [--source-version=SOURCE_VERSION] # git branch
32
- # Default: master
33
- b, [--branch=BRANCH] # git branch
34
- # Default: master
35
- [--env-vars=one two three] # env var overrides. IE: KEY1=VALUE1 KEY2=VALUE2
36
- [--type=TYPE] # folder to use within .codebuild folder for different build types
37
- [--stack-name=STACK_NAME] # Override the generated stack name. If you use this you must always specify it
38
- [--wait], [--no-wait] # Wait for operation to complete
39
- # Default: true
40
- [--verbose], [--no-verbose]
41
- [--noop], [--no-noop]
42
- ```
43
-
@@ -1,21 +0,0 @@
1
- ---
2
- title: cb version
3
- reference: true
4
- ---
5
-
6
- ## Usage
7
-
8
- cb version
9
-
10
- ## Description
11
-
12
- prints version
13
-
14
-
15
- ## Options
16
-
17
- ```
18
- [--verbose], [--no-verbose]
19
- [--noop], [--no-noop]
20
- ```
21
-