Sha256: 7d3e80918ed036ba9d9988247f9c2a61fca6320bda8f1fdf337a35fe33908b44
Contents?: true
Size: 821 Bytes
Versions: 14
Compression:
Stored size: 821 Bytes
Contents
module Vx module Builder class BuildConfiguration class Env attr_reader :attributes def initialize(new_env) normalize_attributes(new_env) end def matrix @attributes["matrix"] end def global @attributes["global"] end private def normalize_attributes(new_env) @attributes = case new_env when Hash { "matrix" => Array(new_env['matrix']), "global" => Array(new_env['global']) } else { "matrix" => Array(new_env).flatten.map(&:to_s), "global" => [] } end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems