Sha256: c49bdca66b8663e1c4020e843a48bf052c2856afee17eaf21b71b01dd536826e
Contents?: true
Size: 504 Bytes
Versions: 6
Compression:
Stored size: 504 Bytes
Contents
class Andrake::Generator::Rakefile class << self def run! check_file create_file end private def check_file raise if File.exists?(rakefile) end def create_file template_result = File.read(File.join(template_dir, rakefile)) File.open(rakefile, 'w') {|file| file.write(template_result) } end def rakefile ; 'Rakefile' ; end def template_dir ; File.expand_path(File.dirname(__FILE__) + '/../templates') ; end end end
Version data entries
6 entries across 6 versions & 1 rubygems