Module: Rocket::Server::Misc
- Defined in:
- lib/rocket/server/misc.rb
Class Method Summary collapse
-
.generate_config_file(fname) ⇒ Object
Generates example config file for Rocket server.
Class Method Details
.generate_config_file(fname) ⇒ Object
Generates example config file for Rocket server.
6 7 8 9 10 11 12 13 |
# File 'lib/rocket/server/misc.rb', line 6 def self.generate_config_file(fname) File.open(fname, "w+") do |f| f.write(File.read(File.("../templates/config.yml.tpl", __FILE__))) end rescue => e puts e.to_s exit 1 end |