To assess the ability of the candidate to setup and deploy a simple Rails application with different services to cloud.
- Build a form that takes the following information from the user:
- First name
- Last name
- Date of Birth
desc 'Find routes that will raise a routing error when requested' | |
task unroutable_routes: :environment do | |
# A lot of this code was taken from how `rake routes` works | |
# https://github.com/rails/rails/blob/f95c0b7e96eb36bc3efc0c5beffbb9e84ea664e4/railties/lib/rails/commands/routes/routes_command.rb | |
require 'action_dispatch/routing/inspector' | |
unroutables = Rails.application.routes.routes. | |
map { |r| ActionDispatch::Routing::RouteWrapper.new(r) }. | |
reject { |r| r.internal? || r.engine? || r.path.starts_with?('/rails/') || !r.controller }. |
# Script to get list of gems installed on servers in a CSV file, | |
# with their licenses. | |
require 'csv' | |
class GemFinder | |
ROWS = %w[ | |
name | |
added_date | |
removed_date |
# frozen_string_literal: true | |
require 'capybara/cuprite' | |
Capybara.register_driver :cuprite do |app| | |
headless = !ENV.key?('CAPYBARA_HEADLESS') || ENV['CAPYBARA_HEADLESS'] == 'true' | |
options = { | |
headless: headless, | |
# Use this when running CAPYBARA_HEADLESS=false |
Install lxc from arch repository | |
Install vagrant | |
Install vagrant pluging vagrant-lxc | |
Follow to setup network configuration | |
https://github.com/elemoine/vagrant-lxc-howto |