Sha256: 2b3b2eae454954add532d33778f958153df4455d7ce54678142e744d12f98e17
Contents?: true
Size: 569 Bytes
Versions: 8
Compression:
Stored size: 569 Bytes
Contents
module Codebuild module Variables def load_variables load_variables_file("base") load_variables_file(Codebuild.env) # Then load type scope variables, so they take higher precedence load_variables_file("base", @options[:type]) load_variables_file(Codebuild.env, @options[:type]) end def load_variables_file(filename, type=nil) items = ["#{Codebuild.root}/.codebuild", type, "variables/#{filename}.rb"].compact path = items.join('/') instance_eval(IO.read(path), path) if File.exist?(path) end end end
Version data entries
8 entries across 8 versions & 1 rubygems