Ensure you have homebrew installed. See https://brew.sh
brew install coreutils curl git libyaml asdf
# This was a thought experiment resulting from the Rooftop Ruby podcast. | |
# The challenge is to distribute a number of test jobs evenly across X number of CPU cores. | |
# This seems to be a NP-Hard problem. | |
# However according to my tests you can get each job queue with 0.5% other using a simple algorithm. | |
# | |
# https://www.rooftopruby.com/2108545/14453859-35-kind-of-cool-and-interesting | |
test_times = Array.new(100) { rand(5..180) } | |
num_cores = 8 |
Ensure you have homebrew installed. See https://brew.sh
brew install coreutils curl git libyaml asdf
# frozen_string_literal: true | |
namespace :jumpstart do | |
desc "Maintain Jumpstart Pro" | |
require "fileutils" | |
include FileUtils | |
# path to your application root. | |
app_root = File.expand_path("../..", __dir__) |