Method: Gitplate.init
- Defined in:
- lib/gitplate/gitplate.rb
.init ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gitplate/gitplate.rb', line 20 def self.init init_gitplate_dir if (!File.exists?(plate_file)) debug_msg "Creating sample plate file #{plate_file}" # create the sample plate file File.open(plate_file, "w") { |f| f.write("init do\n") f.write(" # add code to run when installing a new project\n") f.write("end\n") } end end |