Fix if branch and option syntax errors

This commit is contained in:
Brian Cain 2014-10-29 14:14:51 -07:00
parent ca90919c03
commit 18869bb440

View file

@ -48,14 +48,14 @@ class CLI < Thor
end end
desc "release <HOSTNAME,...> [--all]", "Schedules a VM for deletion" desc "release <HOSTNAME,...> [--all]", "Schedules a VM for deletion"
options :all option :all
def release(hostname_list=nil) def release(hostname_list=nil)
# HTTP DELETE vmpooler.company.com/vm/#{hostname} # HTTP DELETE vmpooler.company.com/vm/#{hostname}
# { "ok": true } # { "ok": true }
if options[:all] if options[:all]
# release all hosts managed by vmfloaty # release all hosts managed by vmfloaty
end else
hostname_arr = hostname_list.split(',') hostname_arr = hostname_list.split(',')
hostname_arr.each do |hostname| hostname_arr.each do |hostname|