# File lib/rudy/config.rb, line 106
106:     def self.init_config_dir
107:       
108:       unless File.exists?(Rudy::CONFIG_DIR)
109:         puts "Creating #{Rudy::CONFIG_DIR}"
110:         Dir.mkdir(Rudy::CONFIG_DIR, 0700)
111:       end
112: 
113:       unless File.exists?(Rudy::CONFIG_FILE)
114:         puts "Creating #{Rudy::CONFIG_FILE}"
115:         rudy_config = Rudy::Utils.without_indent %Q`
116:           accounts {                           # Account Access Indentifiers
117:             aws {                              # amazon web services
118:               name "Rudy Default"
119:               accountnum ""
120:               accesskey ""
121:               secretkey ""
122:               pkey "~/path/2/pk-xxxx.pem"
123:               cert "~/path/2/cert-xxxx.pem"
124:             }
125:           }
126: `
127:         Rudy::Utils.write_to_file(Rudy::CONFIG_FILE, rudy_config, 'w', 0600)
128:       end
129:     end