Sha256: ae6388b9022e9976037dd328d9b672e29c1be06d799d3b62013e3ada703933d0

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

require 'rails/generators'

module Theme
  module Generators
    class LandingPageGenerator < ::Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      desc "A Bootstrap HTML starter template (from startbootstrap.com)"

      def create_page
        copy_file 'application.html.erb', 'app/views/layouts/application.html.erb'
        copy_file 'index.html', 'app/views/visitors/index.html.erb'
        copy_file 'landing-page.css', 'app/assets/stylesheets/landing-page.css'
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rails_apps_pages-0.6.7 lib/generators/theme/landing_page/landing_page_generator.rb
rails_apps_pages-0.6.6 lib/generators/theme/landing_page/landing_page_generator.rb
rails_apps_pages-0.6.5 lib/generators/theme/landing_page/landing_page_generator.rb
rails_apps_pages-0.6.4 lib/generators/theme/landing_page/landing_page_generator.rb
rails_apps_pages-0.6.3 lib/generators/theme/landing_page/landing_page_generator.rb
rails_apps_pages-0.6.2 lib/generators/theme/landing_page/landing_page_generator.rb