Module: Dockerfile
- Defined in:
- lib/dockerfile-dsl/compile.rb
Class Method Summary collapse
Class Method Details
.from_array(array) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/dockerfile-dsl/compile.rb', line 2 def self.from_array array array.map do |entry| [entry[0].to_s.upcase, *entry[1..-1].map { |o| compile_object o }] \ .join(' ') + "\n" end.join end |