From dce854ae2ad72c3180c5455d63ae69edcefc77ec Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Wed, 29 Oct 2014 14:04:26 -0700 Subject: [PATCH] Remove PE option from get operation This operation should probably not exist within the get operation. Instead, it can exist with the provision class. --- lib/vmfloaty/cli.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/vmfloaty/cli.rb b/lib/vmfloaty/cli.rb index dfd6941..120bfa2 100644 --- a/lib/vmfloaty/cli.rb +++ b/lib/vmfloaty/cli.rb @@ -4,8 +4,7 @@ require 'uri' require 'json' class CLI < Thor - desc "get [--withpe version]", "Gets a VM" - option :withpe + desc "get ", "Gets a VM" def get(os_list) # HTTP POST -d os_list vmpooler.company.com/vm @@ -17,12 +16,6 @@ class CLI < Thor host_res = JSON.parse(response.body) puts host_res - - if options[:withpe] - # say "Get a #{os_list} VM here and provision with PE verison #{options[:withpe]}" - else - # ? - end end desc "modify ", "Modify a VM" @@ -52,7 +45,7 @@ class CLI < Thor puts hosts end - desc "release [HOSTNAME,...]", "Schedules a VM for deletion" + desc "release ", "Schedules a VM for deletion" def release(hostname_list) # HTTP DELETE vmpooler.company.com/vm/#{hostname} # { "ok": true }