lib/isomorfeus/installer/dsl.rb in isomorfeus-2.3.0 vs lib/isomorfeus/installer/dsl.rb in isomorfeus-2.3.1
- old
+ new
@@ -50,9 +50,13 @@
def install_basic_policy
create_file_from_template(Isomorfeus::Installer.templates_path, 'anonymous_policy.rb.erb',
File.join('app', 'policies', 'anonymous_policy.rb'), {})
end
+ def install_rake_file
+ create_file_from_template(Isomorfeus::Installer.templates_path, 'Rakefile.erb', 'Rakefile', {})
+ end
+
def install_spec_files
data_hash = { roda_app_class: Isomorfeus::Installer.roda_app_class, roda_app_path: Isomorfeus::Installer.roda_app_path,
rack_server: Isomorfeus::Installer.rack_server_name }
create_file_from_template(Isomorfeus::Installer.templates_path, 'spec_helper.rb.erb', File.join('spec', 'spec_helper.rb'), data_hash)
end