Sha256: 0104315ae3d336a59cef862d7d6a1b7c6df3c00a20ddec60899153c5ac9a9239

Contents?: true

Size: 597 Bytes

Versions: 2

Compression:

Stored size: 597 Bytes

Contents

module Leosca
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('../../', __FILE__)
      class_option :erb, :type => :boolean, :default => true, :description => "Copy erb files"

      def copy_templates_to_local
        directory "erb/leosca", "lib/generators/erb/leosca" if options.erb?
        directory "rails/leosca", "lib/generators/rails/leosca"
        directory "rails/leosca_controller", "lib/generators/rails/leosca_controller"
        copy_file "base.rb", "lib/generators/base.rb"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
leonardo-1.6.1 lib/generators/leosca/install_generator.rb
leonardo-1.6.0 lib/generators/leosca/install_generator.rb