# File lib/fastcst/repo.rb, line 176
176:         def Repository.create(path, env = {})
177:             if not File.exist? path
178:                 Dir.mkdir path
179:             end
180:         
181:             repo = Repository.new path
182:             # create a base env.yaml and index.yaml
183:             File.open(repo.env_yaml, "w") { |out| YAML.dump(env, out) }
184: 
185:             # create the originals and root directory
186:             Dir.mkdir repo.root_dir
187:             Dir.mkdir repo.originals_dir
188:             Dir.mkdir repo.work_dir
189:             Dir.mkdir repo.plugin_dir
190:         
191:             # setup the pending file (just an empty file)
192:             pending = File.open(repo.pending_mbox, "w")
193:             pending.close
194:         
195:             return repo
196:         end