Sha256: 4647e2218036f3b2d1f09c653dbe0570049ca804ab5dfd9f22af0ce4140dc10f

Contents?: true

Size: 936 Bytes

Versions: 3

Compression:

Stored size: 936 Bytes

Contents

module Showboat
  module Generators
    class InstallGenerator < Rails::Generators::Base
      desc 'Install the base assets for setting up a showboat presentation.'
      source_root File.expand_path('../../../../../spec/dummy', __FILE__)

      def cleanup_rails
        remove_file "README.rdoc"
        remove_dir "app/assets"
        remove_dir "app/controllers"
        remove_dir "app/helpers"
        remove_dir "app/mailers"
        remove_dir "app/models"
        remove_dir "app/views"
        remove_dir "doc"
        remove_dir "lib"
        remove_dir "public"
        remove_dir "test"
        remove_dir "vendor/assets"
      end

      def copy_directories
        directory "app/assets"
        directory "app/controllers"
        directory "app/views"
        directory "public", "public"
      end

      def copy_files
        copy_file "config/routes.rb"
        copy_file "README.md"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
showboat-0.0.3 lib/generators/showboat/install/install_generator.rb
showboat-0.0.2 lib/generators/showboat/install/install_generator.rb
showboat-0.0.1 lib/generators/showboat/install/install_generator.rb