Class: Producer::Core::Remote::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/producer/core/remote/environment.rb

Class Method Summary collapse

Class Method Details

.string_to_hash(str) ⇒ Object



6
7
8
# File 'lib/producer/core/remote/environment.rb', line 6

def string_to_hash str
  Hash[str.each_line.map { |l| l.chomp.split '=', 2 }]
end