Merge pull request #88 from simonrand/ensure-curl-is-available

Ensure curl is installed on hosts during bootstrapping
This commit is contained in:
David Heinemeier Hansson
2023-03-08 17:05:40 +00:00
committed by GitHub
3 changed files with 29 additions and 4 deletions

16
test/cli/server_test.rb Normal file
View File

@@ -0,0 +1,16 @@
require_relative "cli_test_case"
class CliServerTest < CliTestCase
test "bootstrap" do
run_command("bootstrap").tap do |output|
assert_match /which curl/, output
assert_match /which docker/, output
assert_match /apt-get update -y && apt-get install curl docker.io -y/, output
end
end
private
def run_command(*command)
stdouted { Mrsk::Cli::Server.start([*command, "-c", "test/fixtures/deploy_with_accessories.yml"]) }
end
end