buildkite-builder 1.3.1 → 1.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 669f98cc6170037177ae0c80008c0a39909cf9467d333eab77c81d97bb26d94d
4
- data.tar.gz: 2574e9e06b8140029edde690bd588f1171417810056f53fcc57225a061c8cbed
3
+ metadata.gz: 713a7970965943e572db027e5b89d467db1381d44dd9a230ecad22af7a36c3e1
4
+ data.tar.gz: 1e290b14e602880da6dd765669a7aafce8241c6f483aae99d1d644dda418cfb3
5
5
  SHA512:
6
- metadata.gz: 64284b828cd1af1768b1354af0bddf2505c203124797117d74af8fce6d59e9342dc4668dc84a462d4569da00a6628006f773cda753c90782ff718a712c9d1413
7
- data.tar.gz: d97d496f48f63060aa769d07952c648f4ed31303c070164b8e8754ce761bba9475f60b2bcf1bc7bdd1b96e7e008658a4823f0dda56b976974b20060a8ae6249e
6
+ metadata.gz: 606a86aebb0febb61b312eb53d8f53f37f4290835592e277071d22758b94cd3922ea5b77e625a616f9fcc8ac61961705e329dd2c24a6fb902f9f1a1ca85b2dae
7
+ data.tar.gz: ae7cc07503fcd17605c3865975c1a70b43dded6f1b71923efe2cb675d40870eef04eb2b373588b859e19759882092fb204a672cff3c47985517bab5197ae2b78
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.4.0
2
+ * Fix the `files` command. You now pass in the manifest with the `--manifest` CLI argument.
3
+
1
4
  ## 1.3.1
2
5
  * Expose `data` from `StepContext` to `Step`
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.4.0
@@ -9,14 +9,13 @@ module Buildkite
9
9
  self.description = 'Outputs files that match the specified manifest.'
10
10
 
11
11
  def run
12
- pipeline, manifest = ARGV.first.to_s.split('/')
13
- if !pipeline || !manifest
14
- raise 'You must specify a pipeline and a manifest (eg "mypipeline/mymanifest")'
15
- end
12
+ manifests = Loaders::Manifests.load(pipeline_path)
13
+ puts manifests[options[:manifest]].files.sort.join("\n")
14
+ end
16
15
 
17
- manifests = Loaders::Manifests.load(pipeline)
18
- manifests[manifest].files.each do |file|
19
- puts file
16
+ def parse_options(opts)
17
+ opts.on('--manifest MANIFEST', 'The manifest to use') do |manifest|
18
+ options[:manifest] = manifest
20
19
  end
21
20
  end
22
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildkite-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngan Pham
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-03-02 00:00:00.000000000 Z
12
+ date: 2021-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sorted_set