Class: CoverMe::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- CoverMe::InstallGenerator
- Defined in:
- lib/generators/cover_me/install/install_generator.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner ⇒ Object
12 13 14 |
# File 'lib/generators/cover_me/install/install_generator.rb', line 12 def self. "rails generate cover_me:install" end |
.source_root ⇒ Object
8 9 10 |
# File 'lib/generators/cover_me/install/install_generator.rb', line 8 def self.source_root @_cover_me_source_root ||= File.(File.join(File.dirname(__FILE__), 'templates')) end |
Instance Method Details
#copy_files ⇒ Object
16 17 18 |
# File 'lib/generators/cover_me/install/install_generator.rb', line 16 def copy_files template 'cover_me.rake', 'lib/tasks/cover_me.rake' end |