concourse 0.32.0 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +11 -0
- data/lib/concourse.rb +3 -0
- data/lib/concourse/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b85989175cc8ec8bb8b3f250544e1eb568b577343e07617db488affd7877ead7
|
4
|
+
data.tar.gz: 8854b8eb32fa8389624bff4f47e41d0e525a0debf378aaeddcd62d139cc48bfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 578cb1e88feb546eca5080b40633225ebab45f97e028fd3bcd989748ac94a67d44aeae5ccd45cd039b3ad9a78acd5d254ff0cab9f8d46606fad4590c23c7ff03
|
7
|
+
data.tar.gz: 8cdc46a9b8ce7594cfa3a624365a48894b5d1686260f21fb0e231257c540bb118df205623656e488ada4da32b9ceefaeecab21ee81db70b4fccb30f8def5e0fb
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -225,6 +225,17 @@ Concourse.new("myproject", fly_target: "myci").create_tasks! # `fly -t myci <com
|
|
225
225
|
```
|
226
226
|
|
227
227
|
|
228
|
+
### `format`: Emit the final pipelines in `fly format-pipeline` canonical format
|
229
|
+
|
230
|
+
If you'd prefer to have your final pipeline files in `fly`'s "canonical format" (via `format-pipeline`), then set this to true!
|
231
|
+
|
232
|
+
``` ruby
|
233
|
+
Concourse.new("myproject", format: true).create_tasks!
|
234
|
+
```
|
235
|
+
|
236
|
+
This might be useful if you're heavily refactoring your template, and want to make sure there aren't unexpected changes to the pipeline.
|
237
|
+
|
238
|
+
|
228
239
|
### `pipeline_erb_filename`: Pipeline filename
|
229
240
|
|
230
241
|
By default the pipeline file will be named `<myproject>.yml`, but can be set to something else:
|
data/lib/concourse.rb
CHANGED
@@ -26,6 +26,7 @@ class Concourse
|
|
26
26
|
attr_reader :pipelines
|
27
27
|
attr_reader :fly_target
|
28
28
|
attr_reader :secrets_filename
|
29
|
+
attr_reader :format
|
29
30
|
|
30
31
|
CONCOURSE_DOCKER_COMPOSE = "docker-compose.yml"
|
31
32
|
|
@@ -56,6 +57,7 @@ class Concourse
|
|
56
57
|
|
57
58
|
@directory = options[:directory] || DEFAULT_DIRECTORY
|
58
59
|
@fly_target = options[:fly_target] || DEFAULT_FLY_TARGET
|
60
|
+
@format = options.has_key?(:format) ? options[:format] : false
|
59
61
|
|
60
62
|
base_secrets_filename = options[:secrets_filename] || DEFAULT_SECRETS
|
61
63
|
@secrets_filename = File.join(@directory, base_secrets_filename)
|
@@ -90,6 +92,7 @@ class Concourse
|
|
90
92
|
f.write erbify_file(pipeline.erb_filename, working_directory: directory)
|
91
93
|
end
|
92
94
|
fly "validate-pipeline -c #{pipeline.filename}"
|
95
|
+
fly "format-pipeline -c #{pipeline.filename} -w" if format
|
93
96
|
end
|
94
97
|
|
95
98
|
def ensure_docker_compose_file
|
data/lib/concourse/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: concourse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.33.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Dalessio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: term-ansicolor
|