buildkite-builder 1.0.0.beta.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.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/CHANGELOG.md +0 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +13 -0
  7. data/Gemfile.lock +56 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +44 -0
  10. data/Rakefile +6 -0
  11. data/bin/buildkite-builder +6 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/buildkite-builder.gemspec +28 -0
  15. data/lib/buildkite-builder.rb +14 -0
  16. data/lib/buildkite/builder.rb +54 -0
  17. data/lib/buildkite/builder/commands.rb +49 -0
  18. data/lib/buildkite/builder/commands/abstract.rb +64 -0
  19. data/lib/buildkite/builder/commands/files.rb +25 -0
  20. data/lib/buildkite/builder/commands/preview.rb +29 -0
  21. data/lib/buildkite/builder/definition.rb +24 -0
  22. data/lib/buildkite/builder/file_resolver.rb +59 -0
  23. data/lib/buildkite/builder/github.rb +71 -0
  24. data/lib/buildkite/builder/loaders.rb +12 -0
  25. data/lib/buildkite/builder/loaders/abstract.rb +40 -0
  26. data/lib/buildkite/builder/loaders/manifests.rb +23 -0
  27. data/lib/buildkite/builder/loaders/processors.rb +37 -0
  28. data/lib/buildkite/builder/loaders/templates.rb +25 -0
  29. data/lib/buildkite/builder/logging_utils.rb +24 -0
  30. data/lib/buildkite/builder/manifest.rb +89 -0
  31. data/lib/buildkite/builder/manifest/rule.rb +51 -0
  32. data/lib/buildkite/builder/processors.rb +9 -0
  33. data/lib/buildkite/builder/processors/abstract.rb +76 -0
  34. data/lib/buildkite/builder/rainbow.rb +9 -0
  35. data/lib/buildkite/builder/runner.rb +114 -0
  36. data/lib/buildkite/env.rb +52 -0
  37. data/lib/buildkite/pipelines.rb +13 -0
  38. data/lib/buildkite/pipelines/api.rb +119 -0
  39. data/lib/buildkite/pipelines/attributes.rb +137 -0
  40. data/lib/buildkite/pipelines/command.rb +59 -0
  41. data/lib/buildkite/pipelines/helpers.rb +43 -0
  42. data/lib/buildkite/pipelines/helpers/block.rb +18 -0
  43. data/lib/buildkite/pipelines/helpers/command.rb +21 -0
  44. data/lib/buildkite/pipelines/helpers/depends_on.rb +13 -0
  45. data/lib/buildkite/pipelines/helpers/key.rb +13 -0
  46. data/lib/buildkite/pipelines/helpers/label.rb +18 -0
  47. data/lib/buildkite/pipelines/helpers/plugins.rb +24 -0
  48. data/lib/buildkite/pipelines/helpers/retry.rb +20 -0
  49. data/lib/buildkite/pipelines/helpers/skip.rb +15 -0
  50. data/lib/buildkite/pipelines/helpers/soft_fail.rb +15 -0
  51. data/lib/buildkite/pipelines/helpers/timeout_in_minutes.rb +17 -0
  52. data/lib/buildkite/pipelines/pipeline.rb +129 -0
  53. data/lib/buildkite/pipelines/plugin.rb +23 -0
  54. data/lib/buildkite/pipelines/steps.rb +15 -0
  55. data/lib/buildkite/pipelines/steps/abstract.rb +26 -0
  56. data/lib/buildkite/pipelines/steps/block.rb +20 -0
  57. data/lib/buildkite/pipelines/steps/command.rb +30 -0
  58. data/lib/buildkite/pipelines/steps/input.rb +20 -0
  59. data/lib/buildkite/pipelines/steps/skip.rb +28 -0
  60. data/lib/buildkite/pipelines/steps/trigger.rb +22 -0
  61. data/lib/buildkite/pipelines/steps/wait.rb +18 -0
  62. data/lib/vendor/rainbow/Changelog.md +101 -0
  63. data/lib/vendor/rainbow/Gemfile +30 -0
  64. data/lib/vendor/rainbow/LICENSE +20 -0
  65. data/lib/vendor/rainbow/README.markdown +225 -0
  66. data/lib/vendor/rainbow/Rakefile +11 -0
  67. data/lib/vendor/rainbow/lib/rainbow.rb +13 -0
  68. data/lib/vendor/rainbow/lib/rainbow/color.rb +150 -0
  69. data/lib/vendor/rainbow/lib/rainbow/ext/string.rb +64 -0
  70. data/lib/vendor/rainbow/lib/rainbow/global.rb +25 -0
  71. data/lib/vendor/rainbow/lib/rainbow/null_presenter.rb +100 -0
  72. data/lib/vendor/rainbow/lib/rainbow/presenter.rb +144 -0
  73. data/lib/vendor/rainbow/lib/rainbow/refinement.rb +14 -0
  74. data/lib/vendor/rainbow/lib/rainbow/string_utils.rb +22 -0
  75. data/lib/vendor/rainbow/lib/rainbow/version.rb +5 -0
  76. data/lib/vendor/rainbow/lib/rainbow/wrapper.rb +22 -0
  77. data/lib/vendor/rainbow/lib/rainbow/x11_color_names.rb +153 -0
  78. data/lib/vendor/rainbow/rainbow.gemspec +23 -0
  79. metadata +126 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c22fb54818a96418e345d04ef7e12a65763af08fe6250175d637d575ba2c583a
4
+ data.tar.gz: 64c066a9f8c3911a19f07a4c17c757ba345298eee3520054dc87d14ed27fb792
5
+ SHA512:
6
+ metadata.gz: 9ae6894272a6a796b7e7a4b1cff2cad4022fa3c2219a685de70c4079964907964b7e5abf560b04eacbb8d9e1a6dbe703ed9eb4ed7e796bf4eb04a3c5a942b42b
7
+ data.tar.gz: 27ed5cd611cdcb50957e40e48dfcc8f31b14001132db37c1edc6119f4c83241329561928703f49d4919be3ffa553617f693b765136730fc4c2d364ab6475f1c6
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format progress
2
+ --color
3
+ --require spec_helper
File without changes
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at andrew.lee@gusto.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ gem 'bundler', '~> 2.1'
7
+ gem 'rake'
8
+
9
+ gem 'byebug'
10
+ gem 'pry-byebug'
11
+ gem 'rspec'
12
+ gem 'webmock'
13
+ end
@@ -0,0 +1,56 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ buildkite-builder (1.0.0.beta.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ addressable (2.7.0)
10
+ public_suffix (>= 2.0.2, < 5.0)
11
+ byebug (11.1.3)
12
+ coderay (1.1.3)
13
+ crack (0.4.4)
14
+ diff-lcs (1.3)
15
+ hashdiff (1.0.1)
16
+ method_source (1.0.0)
17
+ pry (0.13.1)
18
+ coderay (~> 1.1)
19
+ method_source (~> 1.0)
20
+ pry-byebug (3.9.0)
21
+ byebug (~> 11.0)
22
+ pry (~> 0.13.0)
23
+ public_suffix (4.0.6)
24
+ rake (13.0.1)
25
+ rspec (3.9.0)
26
+ rspec-core (~> 3.9.0)
27
+ rspec-expectations (~> 3.9.0)
28
+ rspec-mocks (~> 3.9.0)
29
+ rspec-core (3.9.0)
30
+ rspec-support (~> 3.9.0)
31
+ rspec-expectations (3.9.0)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.9.0)
34
+ rspec-mocks (3.9.0)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.9.0)
37
+ rspec-support (3.9.0)
38
+ webmock (3.10.0)
39
+ addressable (>= 2.3.6)
40
+ crack (>= 0.3.2)
41
+ hashdiff (>= 0.4.0, < 2.0.0)
42
+
43
+ PLATFORMS
44
+ ruby
45
+
46
+ DEPENDENCIES
47
+ buildkite-builder!
48
+ bundler (~> 2.1)
49
+ byebug
50
+ pry-byebug
51
+ rake
52
+ rspec
53
+ webmock
54
+
55
+ BUNDLED WITH
56
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Ngan Pham, Andrew Lee
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,44 @@
1
+ # Buildkite::Builder
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/buildkite/builder`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'buildkite-builder'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install buildkite-builder
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/buildkite-builder. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/buildkite-builder/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
+
42
+ ## Code of Conduct
43
+
44
+ Everyone interacting in the Buildkite::Builder project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/buildkite-builder/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'buildkite-builder'
5
+
6
+ Buildkite::Builder::Commands.run
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "buildkite-builder"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,28 @@
1
+ $LOAD_PATH.unshift File.expand_path('lib', __dir__)
2
+ require 'buildkite-builder'
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "buildkite-builder"
6
+ spec.version = Buildkite::Builder::VERSION
7
+ spec.authors = ["Ngan Pham", "Andrew Lee"]
8
+ spec.email = ["gusto-opensource-buildkite@gusto.com"]
9
+
10
+ spec.summary = %q{Write a short summary, because RubyGems requires one.}
11
+ spec.description = %q{Write a longer description or delete this line.}
12
+ spec.homepage = 'https://github.com/Gusto/buildkite-builder'
13
+ spec.license = 'MIT'
14
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://github.com/Gusto/buildkite-builder"
18
+ spec.metadata["changelog_uri"] = "https://github.com/Gusto/buildkite-builder/blob/master/CHANGELOG.md"
19
+ spec.metadata["bug_tracker_uri"] = "https://github.com/Gusto/buildkite-builder/issues"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ spec.executables = ['buildkite-builder']
27
+ spec.require_paths = ["lib"]
28
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Buildkite
4
+ autoload :Env, File.expand_path('buildkite/env', __dir__)
5
+ autoload :Builder, File.expand_path('buildkite/builder', __dir__)
6
+ autoload :Pipelines, File.expand_path('buildkite/pipelines', __dir__)
7
+
8
+ def self.env
9
+ unless defined?(@env)
10
+ @env = Env.load(ENV)
11
+ end
12
+ @env
13
+ end
14
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler'
4
+ require 'logger'
5
+ require 'pathname'
6
+
7
+ module Buildkite
8
+ module Builder
9
+ VERSION = '1.0.0.beta.1'
10
+
11
+ autoload :Commands, File.expand_path('builder/commands', __dir__)
12
+ autoload :Definition, File.expand_path('builder/definition', __dir__)
13
+ autoload :FileResolver, File.expand_path('builder/file_resolver', __dir__)
14
+ autoload :Github, File.expand_path('builder/github', __dir__)
15
+ autoload :Loaders, File.expand_path('builder/loaders', __dir__)
16
+ autoload :LoggingUtils, File.expand_path('builder/logging_utils', __dir__)
17
+ autoload :Manifest, File.expand_path('builder/manifest', __dir__)
18
+ autoload :Processors, File.expand_path('builder/processors', __dir__)
19
+ autoload :Rainbow, File.expand_path('builder/rainbow', __dir__)
20
+ autoload :Runner, File.expand_path('builder/runner', __dir__)
21
+
22
+ BUILDKITE_DIRECTORY_NAME = '.buildkite/'
23
+
24
+ class << self
25
+ def root(start_path: Dir.pwd, reset: false)
26
+ @root = nil if reset
27
+ @root ||= find_buildkite_directory(start_path)
28
+ end
29
+
30
+ def find_buildkite_directory(start_path)
31
+ path = Pathname.new(start_path)
32
+ until path.join(BUILDKITE_DIRECTORY_NAME).exist? && path.join(BUILDKITE_DIRECTORY_NAME).directory?
33
+ raise "Unable to find #{BUILDKITE_DIRECTORY_NAME} from #{start_path}" if path == path.parent
34
+
35
+ path = path.parent
36
+ end
37
+ path.expand_path
38
+ end
39
+
40
+ def expand_path(path)
41
+ path = Pathname.new(path)
42
+ path.absolute? ? path : root.join(path)
43
+ end
44
+
45
+ def template(&block)
46
+ Definition::Template.new(&block) if block_given?
47
+ end
48
+
49
+ def pipeline(&block)
50
+ Definition::Pipeline.new(&block) if block_given?
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Buildkite
4
+ module Builder
5
+ module Commands
6
+ using Rainbow
7
+ COMMANDS = {
8
+ 'files' => :Files,
9
+ 'preview' => :Preview,
10
+ }.freeze
11
+
12
+ autoload :Abstract, File.expand_path('commands/abstract', __dir__)
13
+ COMMANDS.each do |command, klass|
14
+ autoload klass, File.expand_path("commands/#{command}", __dir__)
15
+ end
16
+
17
+ def self.run
18
+ if ARGV.empty? || ARGV.first == '--help'
19
+ return print_help
20
+ end
21
+
22
+ command = ARGV.shift
23
+ unless (command_class = COMMANDS[command])
24
+ raise "Invalid command: #{command}"
25
+ end
26
+
27
+ const_get(command_class).execute
28
+ end
29
+
30
+ def self.print_help
31
+ puts <<~HELP
32
+ #{'SYNOPSIS'.bright}
33
+ \t#{'buildkite-builder'.bright} COMMAND [OPTIONS] [PIPELINE]
34
+
35
+ \t#{'To see available options for specific commands:'.color(:dimgray)}
36
+ \t#{'buildkite-builder'.bright} COMMAND --help
37
+
38
+ #{'COMMANDS'.bright}
39
+ HELP
40
+ COMMANDS.each do |command, klass|
41
+ puts <<~HELP
42
+ \t#{command.bright}
43
+ \t#{const_get(klass).description.color(:dimgray)}\n
44
+ HELP
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'optparse'
4
+
5
+ module Buildkite
6
+ module Builder
7
+ module Commands
8
+ class Abstract
9
+ class << self
10
+ attr_accessor :description
11
+
12
+ def execute
13
+ new.execute
14
+ end
15
+ end
16
+
17
+ attr_reader :options
18
+
19
+ def initialize
20
+ @options = {}
21
+
22
+ parser = OptionParser.new do |opts|
23
+ opts.banner = "Usage: buildkite-builder #{command_name} [OPTIONS] [PIPELINE]"
24
+
25
+ opts.on('-h', '--help', 'Prints this help') do
26
+ options[:help] = opts
27
+ end
28
+
29
+ parse_options(opts)
30
+ end
31
+ parser.parse!
32
+ end
33
+
34
+ def execute
35
+ if options[:help]
36
+ puts options[:help]
37
+ return
38
+ end
39
+
40
+ run
41
+ end
42
+
43
+ private
44
+
45
+ def command_name
46
+ Commands::COMMANDS.key(self.class.name.split('::').last.to_sym)
47
+ end
48
+
49
+ def parse_options(opts)
50
+ # noop
51
+ # Subclasses should override to parse options.
52
+ end
53
+
54
+ def available_pipelines
55
+ @available_pipelines ||= pipelines_path.children.select(&:directory?).map { |dir| dir.basename.to_s }
56
+ end
57
+
58
+ def pipelines_path
59
+ Buildkite::Builder.root.join(Runner::PIPELINES_PATH)
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end