Sha256: da37a07e3b5227439af4999403f31ef851b72e3dcdb813e94c50f1dd60db470f

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

class IrwiWikiViewsGenerator < Rails::Generators::Base

  source_root File.expand_path("../../../../app/views/base_wiki_pages", __FILE__)

  def views
    empty_directory 'app/views/base_wiki_pages'

    Dir.foreach File.expand_path("../../../../app/views/base_wiki_pages", __FILE__) do |file| # Searching for files in app/views
      copy_file( file, 'app/views/base_wiki_pages/' + file ) if file != '.' && file != '..'
    end
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
irwi-0.5.0 lib/generators/irwi_wiki_views/irwi_wiki_views_generator.rb
irwi_mod-0.0.2 lib/generators/irwi_wiki_views/irwi_wiki_views_generator.rb
irwi_mod-0.0.1 lib/generators/irwi_wiki_views/irwi_wiki_views_generator.rb
irwi-0.4.2 lib/generators/irwi_wiki_views/irwi_wiki_views_generator.rb