[
{
name: "Ruby >= 3.1",
check: -> { RUBY_VERSION >= "3.1.0" },
fix: "Install Ruby 3.1+ via rbenv or asdf"
},
{
name: "Rails installed",
check: -> { system("which rails > /dev/null 2>&1") },
fix: "Run: gem install rails"
},
{
name: "Git installed",
check: -> { system("which git > /dev/null 2>&1") },
fix: "Install git from https://git-scm.com"
},
{
name: "Git user.name configured",
check: -> { !`git config user.name`.strip.empty? rescue false },
fix: "Run: git config --global user.name 'Your Name'"
},
{
name: "Git user.email configured",
check: -> { !`git config user.email`.strip.empty? rescue false },
fix: "Run: git config --global user.email '[email protected]'"
},
{
name: "Outset config file",
check: -> { File.exist?(Config::CONFIG_FILE) },
fix: "Run: outset config init"
}
].freeze