Method: Solidus::InstallGenerator#install_frontend

Defined in:
lib/generators/solidus/install/install_generator.rb

#install_frontendObject



172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# File 'lib/generators/solidus/install/install_generator.rb', line 172

def install_frontend
  @selected_frontend = detect_frontend_to_install

  if @selected_frontend == 'none'
    support_solidus_frontend_extraction
  else
    support_solidus_frontend_extraction unless @selected_frontend == LEGACY_FRONTEND

    say_status :installing, @selected_frontend

    InstallFrontend
      .new(bundler_context: bundler_context, generator_context: self)
      .call(@selected_frontend)

    # The DEFAULT_FRONTEND installation makes changes to the
    # bundle without updating the bundler context. As such, we need to
    # reset the bundler context to get the latest dependencies from the
    # context.
    reset_bundler_context if @selected_frontend == DEFAULT_FRONTEND
  end
end