Sha256: 7cf455e9b180e00b867bff030d1a92b86f5f49728dfcf17c96d9645573ce7661
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
require 'rails/generators' class TestAppGenerator < Rails::Generators::Base source_root "../../spec/test_app_templates" def run_generator generate 'openseadragon:install' end def generate_controller generate 'controller test show' route "root to: 'test#show'" end def add_osd_to_view copy_file "show.html.erb", 'app/views/test/show.html.erb', force: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openseadragon-0.2.1 | spec/test_app_templates/lib/generators/test_app_generator.rb |
openseadragon-0.2.0 | spec/test_app_templates/lib/generators/test_app_generator.rb |