Sha256: eef66aa01f3dd38fd9ebb19616bc62c2292fd4308b9800784a773cdb97831053

Contents?: true

Size: 1.03 KB

Versions: 11

Compression:

Stored size: 1.03 KB

Contents

#encoding: utf-8
module LoldesignPublisher
  class ViewsGenerator < ::Rails::Generators::Base
    source_root File.expand_path('../../../../app/views/layouts/loldesign_publisher', __FILE__)

    def copy_layouts
      copy_file 'publisher.html.erb'              , 'app/views/layouts/loldesign_publisher/publisher.html.erb'
      copy_file '_header_main.html.erb'           , 'app/views/layouts/loldesign_publisher/_header_main.html.erb'
      copy_file '_nav_main.html.erb'              , 'app/views/layouts/loldesign_publisher/_nav_main.html.erb'
      copy_file 'modules/_add_resource.html.erb'  , 'app/views/layouts/loldesign_publisher/modules/_add_resource.html.erb'
      copy_file 'modules/_messages.html.erb'      , 'app/views/layouts/loldesign_publisher/modules/_messages.html.erb'
      copy_file 'modules/_td_not_found.html.erb'  , 'app/views/layouts/loldesign_publisher/modules/_td_not_found.html.erb'
      copy_file 'modules/_title_page.html.erb'    , 'app/views/layouts/loldesign_publisher/modules/_title_page.html.erb'
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
loldesign_publisher-2.0.0 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.5.1 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.5.0 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.4.0 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.3.6 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.3.4 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.3.3 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.3.2 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.3.1 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.3.0 lib/generators/loldesign_publisher/views_generator.rb
loldesign_publisher-1.1.0 lib/generators/loldesign_publisher/views_generator.rb