concourse 0.17.0 → 0.18.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
  SHA1:
3
- metadata.gz: 37511e7a474687d6ec11d72e255d281de6f555d1
4
- data.tar.gz: 678ec65cce34f5805c11b1280afe02f997282a3e
3
+ metadata.gz: 5a111d1a6e28552a97739f863bd30bcf153c3483
4
+ data.tar.gz: 197224eee711b0bb9e11ce480c4e01fe5eaa4cc5
5
5
  SHA512:
6
- metadata.gz: e2a7814471b520f65b737d45a58e3a8fb3b6cec8d73fa1b01a3627af2ed70acf58943de50b54c2ed38b7c96a150186235726069f416700c261f7ef3da31dc87d
7
- data.tar.gz: af1a415fcae196684281d7e82e87247d2acfb4f83493138559015ac846fadb97625d66429951440fa1f2196329198eb0e575f3d14a578d5e2cc01cb1463042a0
6
+ metadata.gz: 0d6d3817dd47e2afdaf5a5d073750037312d60291a3d72d05042a5e436462a815bb2213741cd3576b7618007ff4fc49b6f77172337ea679fbe171c8658bfe34b
7
+ data.tar.gz: 5fae82ad82d93f2523c2f2c5233c436ce9e724849e17eb0043c64daf8bf51c95cc3b117c5e86e5ba303d1918ce07898d858befa278a0b75c83577ab3866d0f7b
@@ -1,5 +1,10 @@
1
1
  # concourse-gem changelog
2
2
 
3
+ ## 0.18.0 / 2018-02-18
4
+
5
+ * Better default for `input` args to `concourse:task`: use the local directory for all the inputs. This matches the pattern where two different resources are used for ci scripts and the source under test.
6
+
7
+
3
8
  ## 0.17.0 / 2017-09-24
4
9
 
5
10
  * Add support for Ruby 2.5 (in general and on Windows)
@@ -30,6 +30,14 @@ class Concourse
30
30
  matching_line.split(/ +/)[1]
31
31
  end
32
32
 
33
+ def self.default_execute_args task
34
+ args = []
35
+ task["config"]["inputs"].each do |input|
36
+ args << "--input=#{input["name"]}=."
37
+ end
38
+ args.join(" ")
39
+ end
40
+
33
41
  def initialize project_name, args={}
34
42
  @project_name = project_name
35
43
  @directory = args[:directory] || DEFAULT_DIRECTORY
@@ -127,9 +135,8 @@ class Concourse
127
135
  desc "fly execute the specified task"
128
136
  task "task", [:fly_target, :job_task, :fly_execute_args] => "generate" do |t, args|
129
137
  fly_target = Concourse.validate_fly_target t, args
130
- job_task = args[:job_task]
131
- fly_execute_args = args[:fly_execute_args] || "--input=#{project_name}=."
132
138
 
139
+ job_task = args[:job_task]
133
140
  unless job_task
134
141
  raise "ERROR: must specify a task name, like `rake #{t.name}[target,taskname]`"
135
142
  end
@@ -137,6 +144,8 @@ class Concourse
137
144
  concourse_task = find_task job_task
138
145
  raise "ERROR: could not find task `#{job_task}`" unless concourse_task
139
146
 
147
+ fly_execute_args = args[:fly_execute_args] || Concourse.default_execute_args(concourse_task)
148
+
140
149
  puts concourse_task.to_yaml
141
150
  Tempfile.create("concourse-task") do |f|
142
151
  f.write concourse_task["config"].to_yaml
@@ -2,5 +2,5 @@ require "rake"
2
2
  require "erb"
3
3
 
4
4
  class Concourse
5
- VERSION = "0.17.0"
5
+ VERSION = "0.18.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.17.0
4
+ version: 0.18.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: 2018-01-26 00:00:00.000000000 Z
11
+ date: 2018-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler