Sha256: ee8d94d762545277183394c08a0b4f8739bf4710f77b2a1e340a4251cb01187a

Contents?: true

Size: 1.42 KB

Versions: 25

Compression:

Stored size: 1.42 KB

Contents

module ConteRailsTemplate #:nodoc:
  module Generators #:nodoc:
    class InstallGenerator < Rails::Generators::Base #:nodoc:

      source_root File.expand_path('../templates', __FILE__)

      def copy_stuff #:nodoc:
        copy_file 'layout.html.erb', 'app/views/layouts/application.html.erb'
        copy_file 'session.html.erb', 'app/views/layouts/single.html.erb'
        copy_file 'navigation_renderers.rb', 'config/initializers/conte_navigation_renderers.rb'
        copy_file 'simple_navigation.rb', 'config/navigation.rb'
        copy_file 'wice_grid_config.rb', 'config/initializers/wice_grid_config.rb'
        copy_file 'wice_grid_local.yml', 'config/locales/wice_grid.yml'

        copy_file 'shared/_breadcrumbs.html.erb', 'app/views/shared/_breadcrumbs.html.erb'
        copy_file 'shared/_notification.html.erb', 'app/views/shared/_notification.html.erb'
        copy_file 'shared/_page_toolbar.html.erb', 'app/views/shared/_page_toolbar.html.erb'

        copy_file 'erb/scaffold/_form.html.erb', 'lib/templates/erb/scaffold/_form.html.erb'
        copy_file 'erb/scaffold/edit.html.erb', 'lib/templates/erb/scaffold/edit.html.erb'
        copy_file 'erb/scaffold/index.html.erb', 'lib/templates/erb/scaffold/index.html.erb'
        copy_file 'erb/scaffold/new.html.erb', 'lib/templates/erb/scaffold/new.html.erb'
        copy_file 'erb/scaffold/show.html.erb', 'lib/templates/erb/scaffold/show.html.erb'
      end

    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
conte_rails_template-0.0.26 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.25 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.24 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.23 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.22 lib/generators/conte_rails_template/install_generator.rb