mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Remove PE option from get operation
This operation should probably not exist within the get operation. Instead, it can exist with the provision class.
This commit is contained in:
parent
bd6c6ed0f7
commit
dce854ae2a
1 changed files with 2 additions and 9 deletions
|
|
@ -4,8 +4,7 @@ require 'uri'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
class CLI < Thor
|
class CLI < Thor
|
||||||
desc "get <OPERATING SYSTEM,...> [--withpe version]", "Gets a VM"
|
desc "get <OPERATING SYSTEM,...>", "Gets a VM"
|
||||||
option :withpe
|
|
||||||
def get(os_list)
|
def get(os_list)
|
||||||
# HTTP POST -d os_list vmpooler.company.com/vm
|
# HTTP POST -d os_list vmpooler.company.com/vm
|
||||||
|
|
||||||
|
|
@ -17,12 +16,6 @@ class CLI < Thor
|
||||||
host_res = JSON.parse(response.body)
|
host_res = JSON.parse(response.body)
|
||||||
|
|
||||||
puts host_res
|
puts host_res
|
||||||
|
|
||||||
if options[:withpe]
|
|
||||||
# say "Get a #{os_list} VM here and provision with PE verison #{options[:withpe]}"
|
|
||||||
else
|
|
||||||
# ?
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "modify <HOSTNAME>", "Modify a VM"
|
desc "modify <HOSTNAME>", "Modify a VM"
|
||||||
|
|
@ -52,7 +45,7 @@ class CLI < Thor
|
||||||
puts hosts
|
puts hosts
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "release [HOSTNAME,...]", "Schedules a VM for deletion"
|
desc "release <HOSTNAME,...>", "Schedules a VM for deletion"
|
||||||
def release(hostname_list)
|
def release(hostname_list)
|
||||||
# HTTP DELETE vmpooler.company.com/vm/#{hostname}
|
# HTTP DELETE vmpooler.company.com/vm/#{hostname}
|
||||||
# { "ok": true }
|
# { "ok": true }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue