Sha256: 0081e7af5e4b4eda562beffe07c390fe19bbd06ddc951ade3faac22d54c4a2c5
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
class Puffer::InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def generate_assets directory 'puffer', 'public/puffer' end def generate_config copy_file 'puffer.rb', 'config/initializers/puffer.rb' end def generate_puffer_controllers copy_file 'sessions_controller.rb', 'app/controllers/puffer/sessions_controller.rb' copy_file 'dashboard_controller.rb', 'app/controllers/puffer/dashboard_controller.rb' end def generate_routes route "namespace :puffer do\n root :to => 'dashboard#index'\n resource :session\n end" end end
Version data entries
4 entries across 4 versions & 1 rubygems