Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.03 KB

File metadata and controls

47 lines (33 loc) · 1.03 KB

Ruby 2.x Example

This example exists primarily to test the following documentation:

Start up tests

Run the following commands to get up and running with this example.

# Should start up successfully
lando poweroff
lando start

Verification commands

Run the following commands to validate things are rolling as they should.

# Should use 2.7.x as the default version
lando ssh -s defaults -c "ruby --version | grep 2.7."

# Should use the user specified patch version when set
lando ssh -s patch -c "ruby --version | grep 2.7.7"

# Should run on port 80 by default
lando ssh -s defaults -c "curl http://localhost | grep TROUBLE"

# Should not serve port 80 for cli
lando ssh -s cli -c "curl http://localhost" || echo $? | grep 7

Destroy tests

Run the following commands to trash this app like nothing ever happened.

# Should be destroyed with success
lando destroy -y
lando poweroff