Method: Ufo::Init#upsert_gitignore

Defined in:
lib/ufo/init.rb

#upsert_gitignoreObject



68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/ufo/init.rb', line 68

def upsert_gitignore
  text =".ufo/current\n.ufo/data\n.ufo/log\n.ufo/output\n"
  if File.exist?(".gitignore")
    append_to_file ".gitignore", text
  else
    create_file ".gitignore", text
  end
end