~/.config-test # .config-test # please fill in fields # # name: your-name # mail: asdf@jkl.com # name: shokai mail: asdf@jkl.com ~/.config-yamlを読む、無ければテンプレートを作る require 'yaml' @@template = <<EOF # .config-test # please fill in fields # # name: your-name # mail: asdf@jkl.com # name: mail: EOF home = ENV['HOME'] || ENV['USERPROFILE'] || ENV['HOMEPATH'] begin config = YAML::load open(home + "/.config