Sha256: 2b980c9d65b0f94750f2ffeaa41f393b0bc30f869164332ec9243b77c3396556

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

module TidaConteTemplate #: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 'single.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

1 entries across 1 versions & 1 rubygems

Version Path
tida_conte_template-0.1.19 lib/generators/tida_conte_template/install_generator.rb