Class: Posthog::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Posthog::Generators::InstallGenerator
- Defined in:
- lib/generators/posthog/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
12 13 14 |
# File 'lib/generators/posthog/install_generator.rb', line 12 def copy_initializer copy_file 'posthog.rb', 'config/initializers/posthog.rb' end |
#show_readme ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/generators/posthog/install_generator.rb', line 16 def show_readme say '' say 'PostHog Rails has been installed!', :green say '' say 'Next steps:', :yellow say ' 1. Edit config/initializers/posthog.rb with your PostHog API key' say ' 2. Set environment variables:' say ' - POSTHOG_API_KEY (required)' say ' - POSTHOG_PERSONAL_API_KEY (optional, for feature flags)' say '' say 'For more information, see: https://posthog.com/docs/libraries/ruby' say '' end |