class Entityjs::Html
Public Class Methods
generate(name='')
click to toggle source
# File lib/entityjs/commands/html.rb, line 5 def self.generate(name='') if !Dirc.game? return 2 end puts "Creating HTML files" play = 'play.html' test = 'test.html' if File.exists?(play) || File.exists?(test) return 3 end FileUtils.cp Entityjs::public_path+'/'+play, play FileUtils.cp Entityjs::public_path+'/'+test, test puts "Created #{play}" puts "Created #{test}" return 0 end