Sha256: 0d703ce2635bfbd15a210a1514ec5e2c59ef041720f781056f71d894ebf69a62

Contents?: true

Size: 371 Bytes

Versions: 14

Compression:

Stored size: 371 Bytes

Contents

module EnjuNdl
  module Generators
    class ViewsGenerator < Rails::Generators::Base
      source_root File.expand_path('../../../../app/views', __FILE__)

      def copy_files
        directories = %w(
          layouts
          ndl_books
        )

        directories.each do |dir|
          directory dir, "app/views/#{dir}"
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
enju_ndl-0.1.0.pre14 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre13 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre12 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre11 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre10 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre9 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre8 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre7 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre6 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre5 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre4 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre3 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre2 lib/generators/enju_ndl/views_generator.rb
enju_ndl-0.1.0.pre lib/generators/enju_ndl/views_generator.rb