Method: DeployInfo::Util#write_json_config

Defined in:
lib/deploy-info/util.rb

#write_json_config(file, object) ⇒ Object

> Define JSON Writer



34
35
36
37
38
39
# File 'lib/deploy-info/util.rb', line 34

def write_json_config(file, object)
  return unless file && object
  begin
    File.open(file, 'w') { |f| f.write(JSON.pretty_generate(object)) }
  end
end