Sha256: 7319d70d2cf2aa79ede7c0a3c83fe54be1952b19f237f877a96a4f72cc1f6dcc
Contents?: true
Size: 852 Bytes
Versions: 7
Compression:
Stored size: 852 Bytes
Contents
module Pieces class Rails class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path('../../../../examples', __FILE__) def pieces_yml copy_file 'rails_app/config/pieces.yml', 'config/pieces.yml' end def stylesheet copy_file 'rails_app/app/assets/stylesheets/pieces.css', 'app/assets/stylesheets/pieces.css' end def views copy_file 'rails_app/app/views/layouts/pieces.html.erb', 'app/views/layouts/pieces.html.erb' copy_file 'rails_app/app/views/application/_header.html.erb', 'app/views/application/_header.html.erb' end def mount_styleguide route "mount Pieces::Rails.new.mount, at: '/styleguide' unless Rails.env.production?" end def gitignore append_to_file '.gitignore', 'build/' end end end end
Version data entries
7 entries across 7 versions & 1 rubygems