Sha256: 5ce236e5641f11af84c0cc9212fb42f547fe92bf805da11b3b91016a6207cc56
Contents?: true
Size: 535 Bytes
Versions: 61
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true module Buildkite module Builder module Definition module Helper def load_definition(file, expected) result = eval(file.read, TOPLEVEL_BINDING.dup, file.to_s) # rubocop:disable Security/Eval unless result.is_a?(expected) raise "#{file} must return a valid definition (#{expected}); got #{result.class}" end result end end class Pipeline < Proc end class Template < Proc end end end end
Version data entries
61 entries across 61 versions & 1 rubygems
Version | Path |
---|---|
buildkite-builder-1.0.0.beta.1 | lib/buildkite/builder/definition.rb |