Class: VisualEnvironments::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- VisualEnvironments::Generators::InstallGenerator
- Defined in:
- lib/generators/visual_environments/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner ⇒ Object
15 16 17 |
# File 'lib/generators/visual_environments/install_generator.rb', line 15 def self. "rails generate visual-environments:install" end |
.source_root ⇒ Object
7 8 9 |
# File 'lib/generators/visual_environments/install_generator.rb', line 7 def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end |
Instance Method Details
#copy_initializer_file ⇒ Object
11 12 13 |
# File 'lib/generators/visual_environments/install_generator.rb', line 11 def copy_initializer_file copy_file "initializer.rb", "config/initializers/visual-environments.rb" end |