class Cipherpipe::Formatters::Env
Public Class Methods
read(input)
click to toggle source
# File lib/cipherpipe/formatters/env.rb, line 2 def self.read(input) require "dotenv" Dotenv::Parser.call input end
write(input)
click to toggle source
# File lib/cipherpipe/formatters/env.rb, line 7 def self.write(input) input.collect { |key, value| "#{key}=\"#{value}\"" }.join("\n") end