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.1.8 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.1.7 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.1.6 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.1.5 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.1.4 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.1.3 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.1.2 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.1.1 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.1.0 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.37 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.36 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.35 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.34 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.33 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.32 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.31 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.30 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.29 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.28 lib/generators/conte_rails_template/install_generator.rb
conte_rails_template-0.0.27 lib/generators/conte_rails_template/install_generator.rb