Class: CoverMe::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/cover_me/install/install_generator.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details



12
13
14
# File 'lib/generators/cover_me/install/install_generator.rb', line 12

def self.banner
  "rails generate cover_me:install"
end

.source_rootObject



8
9
10
# File 'lib/generators/cover_me/install/install_generator.rb', line 8

def self.source_root
  @_cover_me_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
end

Instance Method Details

#copy_filesObject



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