Sha256: 6f6be488d9191abe164b17b398c77fb71c181b370f06fe31a2c1629fde7d8968
Contents?: true
Size: 1007 Bytes
Versions: 14
Compression:
Stored size: 1007 Bytes
Contents
module Dashing module Generators class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path('../../templates', __FILE__) desc 'Creates a Dashing initializer for your application.' def install route 'mount Dashing::Engine, at: Dashing.config.engine_path' end def copy_initializer template 'initializer.rb', 'config/initializers/dashing.rb' end def copy_layout template 'layouts/dashboard.html.erb', 'app/views/layouts/dashing/dashboard.html.erb' end def copy_dashboard template 'dashboards/sample.html.erb', 'app/views/dashing/dashboards/sample.html.erb' end def copy_widget_manifests template 'widgets/index.css', 'app/assets/stylesheets/dashing/widgets/index.css' template 'widgets/index.js', 'app/assets/javascripts/dashing/widgets/index.js' end def copy_job template 'jobs/sample.rb', 'app/jobs/sample.rb' end end end end
Version data entries
14 entries across 14 versions & 1 rubygems