Class: Buildr::Options::EnvArray

Inherits:
Array show all
Defined in:
lib/buildr/core/environment.rb

Overview

We use this to present environment variable as arrays.

Instance Method Summary collapse

Methods inherited from Array

#to_java

Constructor Details

#initialize(name) ⇒ EnvArray

:nodoc:



25
26
27
28
# File 'lib/buildr/core/environment.rb', line 25

def initialize(name)
  @name = name.upcase
  replace((ENV[@name] || ENV[@name.downcase] || '').split(/\s*,\s*/).reject(&:empty?))
end