Method: Jets::Commands::Import::Rails#configure_gemfile

Defined in:
lib/jets/commands/import/rails.rb

#configure_gemfileObject

We add jets-rails gem even though it’s only activated within the megamode rackup wrapper script so user can check run bundle install and determine early if dependencies are met. The jets-rails gem is also added as part of the deploy process but we add it here also so the user gets earlier possible errors and can fix before they hit the deploy phase.



8
9
10
11
12
# File 'lib/jets/commands/import/rails.rb', line 8

def configure_gemfile
  append_to_file 'rack/Gemfile' do
    %Q|gem "jets-rails"\n|
  end
end