lib/app42/command/gpaas.rb in app42-0.6.2 vs lib/app42/command/gpaas.rb in app42-0.6.3
- old
+ new
@@ -37,9 +37,18 @@
ans == true ? (@options[:setup] = get_setup_name if @options[:setup].nil?) : (exit!)
response = gpaas_operation __method__, @options[:setup] if is_setup_name_exist? @options[:setup]
exit! if response
end
+ # collect GPaaS setup name from user and proceed GPaaS restart request
+ def restart
+ # ans = ask Paint["#{Message::URL_WILL_CHANGE}", :red], :default => true ; print_new_line
+ # ans == true ? (@options[:setup] = get_setup_name if @options[:setup].nil?) : (exit!)
+ @options[:setup] = get_setup_name if @options[:setup].nil?
+ response = gpaas_operation __method__, @options[:setup] if is_setup_name_exist? @options[:setup]
+ exit! if response
+ end
+
# collect GPaaS setup name from user and proceed GPaaS upgrade request
def upgrade
@options[:setup] = get_setup_name if @options[:setup].nil?
print_new_line
iaas, vm_type = get_iaas_and_vm_type @options[:setup]
\ No newline at end of file