Method: AppchatGenerator#add_gems
- Defined in:
- lib/generators/appchat/appchat_generator.rb
#add_gems ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/generators/appchat/appchat_generator.rb', line 11 def add_gems gems = %w( ollama-ai tailwindcss-rails ) gems.each do |gem| unless gem_exists?(gem) append_to_file 'Gemfile', "\ngem '#{gem}'\n" end end Bundler.with_unbundled_env do run 'bundle install' end end |