Command line utility to interact with VM Farms
-
Install Crystal
On Mac OS X with Homebrew:
brew install crystal
-
Create a file to hold the access token at ~/.vmf.env:
ACCESS_TOKEN=foo
-
Install dependencies:
shards install
-
Build the binary by running
make build-release
-
The binary is built as
./vmf-tools
To shell into a hostname:
./vmf-tools shell hostname
That will make an API request to my.vmfarms.com
to get available servers, find the IP address for the hostname specified and invoke an ssh session for the deploy user to the IP address.
To see a list of all hostnames and their IP addresses:
./vmf-tools shell ?
- Fork it (https://github.com/nurey/vmf-tools-crystal/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Ilia Lobsanov - creator and maintainer