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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ec26345e6d3bbe338f8ab1a929b3d9d4c7e89ed9dcdc64dcf797a50ba4d6181
4
- data.tar.gz: cf538c9f7a1d71f807ad85e8d1615943885e9e9f2c18cca7bf602e203f57b506
3
+ metadata.gz: b85989175cc8ec8bb8b3f250544e1eb568b577343e07617db488affd7877ead7
4
+ data.tar.gz: 8854b8eb32fa8389624bff4f47e41d0e525a0debf378aaeddcd62d139cc48bfe
5
5
  SHA512:
6
- metadata.gz: 57724dde7a7129da027b654f2144afa5188f0027420e826ff717a855540829b343e2df25deb8171cc8345eae7cdf1b408f7e0c8f524735744bab132c679474b1
7
- data.tar.gz: 37e8bebb2a38853b7338eea83c98e830542b94507d3818a8512ad9b613a24bcc783300e6c16bd37fb683a0044bf06eacfc09bf73f69c451cb9143a51e8b514a4
6
+ metadata.gz: 578cb1e88feb546eca5080b40633225ebab45f97e028fd3bcd989748ac94a67d44aeae5ccd45cd039b3ad9a78acd5d254ff0cab9f8d46606fad4590c23c7ff03
7
+ data.tar.gz: 8cdc46a9b8ce7594cfa3a624365a48894b5d1686260f21fb0e231257c540bb118df205623656e488ada4da32b9ceefaeecab21ee81db70b4fccb30f8def5e0fb
@@ -1,5 +1,10 @@
1
1
  # concourse-gem changelog
2
2
 
3
+ ## v0.33.0 / 2020-03-31
4
+
5
+ * add `format` option for formatting final pipeline files with `fly format-pipeline`
6
+
7
+
3
8
  ## v0.32.0 / 2020-03-29
4
9
 
5
10
  * avoid deprecation warning for `Bundler.with_clean_env`
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:
@@ -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
@@ -2,5 +2,5 @@ require "rake"
2
2
  require "erb"
3
3
 
4
4
  class Concourse
5
- VERSION = "0.32.0"
5
+ VERSION = "0.33.0"
6
6
  end
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.32.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-29 00:00:00.000000000 Z
11
+ date: 2020-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: term-ansicolor