Class: Bandit::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Bandit::Generators::InstallGenerator
- Defined in:
- lib/generators/bandit/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config ⇒ Object
12 13 14 |
# File 'lib/generators/bandit/install_generator.rb', line 12 def copy_config copy_file 'bandit.yml', 'config/bandit.yml' end |
#copy_initializers ⇒ Object
8 9 10 |
# File 'lib/generators/bandit/install_generator.rb', line 8 def copy_initializers copy_file 'bandit.rb', 'config/initializers/bandit.rb' end |
#copy_rakefile ⇒ Object
16 17 18 |
# File 'lib/generators/bandit/install_generator.rb', line 16 def copy_rakefile copy_file 'bandit.rake', 'lib/tasks/bandit.rake' end |