Class: Webapidoc::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Webapidoc::Generators::InstallGenerator
- Defined in:
- lib/generators/webapidoc/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/generators/webapidoc/install_generator.rb', line 10 def copy_files source_root ||= File.join(File.dirname(__FILE__), 'templates') # create paths FileUtils.mkdir_p "app/documentation" # copy files FileUtils.copy(source_root + "/documentation.md.erb", "app/documentation") FileUtils.copy(source_root + "/_partial.md.erb", "app/documentation") FileUtils.copy(source_root + "/webapidoc.yml", "config") puts "done" end |