Add service command

This change creates the `floaty service` command with two valid
arguemnts: types and examples

- `floaty service types` prints out a list of valid types for use in a
  service definition in ~/.vmfloaty.yml
- `floaty service examples` prints out example configuration files for
  both a single service and multiple services.
This commit is contained in:
Gene Liverman 2020-09-16 10:30:46 -04:00
parent 512adb4af1
commit 9e61247cfe
No known key found for this signature in database
GPG key ID: 3AF83985B6C857C6
5 changed files with 93 additions and 88 deletions

View file

@ -77,9 +77,17 @@ describe Utils do
expect(Utils.get_service_object).to be Pooler
end
it 'uses abs when told explicitly' do
expect(Utils.get_service_object('abs')).to be ABS
end
it 'uses nspooler when told explicitly' do
expect(Utils.get_service_object('nspooler')).to be NonstandardPooler
end
it 'uses vmpooler when told explicitly' do
expect(Utils.get_service_object('vmpooler')).to be Pooler
end
end
describe '#get_service_config' do