Class: Envious::Generators::SetupGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Envious::Generators::SetupGenerator
- Defined in:
- lib/generators/envious/setup_generator.rb
Instance Method Summary collapse
Instance Method Details
#configure_gitignore ⇒ Object
10 11 12 |
# File 'lib/generators/envious/setup_generator.rb', line 10 def configure_gitignore append_file('.gitignore', '/config/environment_vars.yml') if File.exists?('.gitignore') end |
#copy_environment_vars_file ⇒ Object
6 7 8 |
# File 'lib/generators/envious/setup_generator.rb', line 6 def copy_environment_vars_file copy_file 'environment_vars.yml', 'config/environment_vars.yml' end |