concourse 0.5.0 → 0.6.1

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
  SHA1:
3
- metadata.gz: cb83feeb6f40bcd3a194cb889cd7e8e65f43ff64
4
- data.tar.gz: 424a8885d44e16eea6e702237f98cbdb5c55e041
3
+ metadata.gz: 56d17b4df4ab3d532ff68313081b5a3aa8b4a2f5
4
+ data.tar.gz: fb2747f94107203c2eeaa486f61165a1e38f70be
5
5
  SHA512:
6
- metadata.gz: 3d90b8f93734761e7241823c9375328f3126a21a6784772308c32305650030754fbc952f4f2cb32143c2207c8b2c54d468d9b8bcd1388f7253661ad23679f199
7
- data.tar.gz: 43d44fcaa6c2af3d5c879aeb46473a1997698bd19653c6d2c12f48dda0e179b7e8eef8b43a5defc9480d2d39d19fa62f2db56874a9a811f6564d65bbf00f905d
6
+ metadata.gz: e226bca7a495534e778be04684da51baca5636e6203739162e28a42244b692f6467d5d29d648345a49eb608b68903823132b52434e4afffc944ae0e7d256ae95
7
+ data.tar.gz: 86216b2326633817b0438953d6e24f51229a3a0b62fefd46e3c4f836e795e6a078592d31c267e90294912371934b93f727e794815ed18111cbdbbeb731410297
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # concourse-gem changelog
2
2
 
3
+ ## 0.6.{0,1} / 2017-01-26
4
+
5
+ If it exists, use `concourse/private.yml` to fill in template values.
6
+
7
+
3
8
  ## 0.5.0 / 2017-01-23
4
9
 
5
10
  Renamed the `concourse:tasks` task name arg, and improved the README.
data/README.md CHANGED
@@ -36,7 +36,7 @@ The ruby variable `RUBIES` is defined in the ERB binding during pipeline file ge
36
36
  and allows you to write a pipeline like this to get coverage on all the supported rubies:
37
37
 
38
38
  ``` yaml
39
- # myproject.yaml.erb
39
+ # myproject.yml.erb
40
40
  jobs:
41
41
  <% for ruby_version in RUBIES[:mri] %>
42
42
  - name: "ruby-<%= ruby_version %>"
data/lib/concourse.rb CHANGED
@@ -11,6 +11,7 @@ class Concourse
11
11
  }
12
12
 
13
13
  DIRECTORY = "concourse"
14
+ PRIVATE_VAR_FILE = File.join DIRECTORY, "private.yml"
14
15
 
15
16
  attr_reader :project_name, :pipeline_filename, :pipeline_erb_filename
16
17
 
@@ -53,7 +54,15 @@ class Concourse
53
54
  desc "upload the pipeline file for #{project_name}"
54
55
  task "set", [:fly_target] => ["generate"] do |t, args|
55
56
  fly_target = Concourse.validate_fly_target t, args
56
- sh "fly -t #{fly_target} set-pipeline -p #{project_name} -c #{pipeline_filename}"
57
+ options = [
58
+ "-p '#{project_name}'",
59
+ "-c '#{pipeline_filename}'",
60
+ ]
61
+ if File.exist? PRIVATE_VAR_FILE
62
+ puts "using #{PRIVATE_VAR_FILE} to resolve template vars"
63
+ options << "-l '#{PRIVATE_VAR_FILE}'"
64
+ end
65
+ sh "fly -t #{fly_target} set-pipeline #{options.join(" ")}"
57
66
  end
58
67
 
59
68
  %w[expose hide pause unpause].each do |command|
@@ -2,5 +2,5 @@ require "rake"
2
2
  require "erb"
3
3
 
4
4
  class Concourse
5
- VERSION = "0.5.0"
5
+ VERSION = "0.6.1"
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.5.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-23 00:00:00.000000000 Z
11
+ date: 2017-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler