Class: Jslint::UpdateConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Jslint::UpdateConfigGenerator
- Defined in:
- lib/generators/jslint/update_config/update_config_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
11 12 13 |
# File 'lib/generators/jslint/update_config/update_config_generator.rb', line 11 def self.source_root File.join(File.dirname(__FILE__), 'templates') end |
Instance Method Details
#install_update_config ⇒ Object
7 8 9 |
# File 'lib/generators/jslint/update_config/update_config_generator.rb', line 7 def install_update_config copy_file('jslint.yml', 'config/jslint.yml') end |