concourse 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/concourse.rb +10 -1
- data/lib/concourse/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 56d17b4df4ab3d532ff68313081b5a3aa8b4a2f5
|
|
4
|
+
data.tar.gz: fb2747f94107203c2eeaa486f61165a1e38f70be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e226bca7a495534e778be04684da51baca5636e6203739162e28a42244b692f6467d5d29d648345a49eb608b68903823132b52434e4afffc944ae0e7d256ae95
|
|
7
|
+
data.tar.gz: 86216b2326633817b0438953d6e24f51229a3a0b62fefd46e3c4f836e795e6a078592d31c267e90294912371934b93f727e794815ed18111cbdbbeb731410297
|
data/CHANGELOG.md
CHANGED
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.
|
|
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
|
-
|
|
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|
|
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.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-
|
|
11
|
+
date: 2017-01-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|