lib/app42/command/gpaas.rb in app42-0.6.3 vs lib/app42/command/gpaas.rb in app42-0.6.4

- old
+ new

@@ -11,11 +11,12 @@ setup_name = get_setup_name_and_check_setup_url_availability if App42::Command::Auth.is_authorize_for_dedicated? vm_type = 'dedicated' # GPaaS need only dedicated server iaas = get_iaas_providers setup_type = get_setup_type flavour = get_instance_config iaas, vm_type - setup_cloud_api_res = App42::Command::Base.new.create_gpaas_setup setup_name, iaas, vm_type, setup_type, flavour + ans = ask Paint["#{Message::ADD_STATIC_IP}", :red], :default => true ; print_new_line + setup_cloud_api_res = App42::Command::Base.new.create_gpaas_setup setup_name, iaas, vm_type, setup_type, flavour, ans exit! if setup_cloud_api_res end # Delete App42 GPaaS setup, return true or error code/message def delete @@ -65,9 +66,16 @@ iaas, vm_type = get_iaas_and_vm_type @options[:setup] flavour = get_instance_config_for_upgrade_or_downgrade iaas, vm_type, @options[:setup], __method__.to_s if is_setup_name_exist? @options[:setup] response = upgrade_or_downgrade_gpaas __method__, @options[:setup], flavour exit! if response end + + # Update GPaaS Dashboard + def update + @options[:setup] = get_setup_name if @options[:setup].nil? + print_new_line + response = update_gpaas_dashboard @options[:setup] if is_setup_name_exist? @options[:setup] + end # return setup type def get_setup_type setup_type_hash = {} setup_type = App42::Command::Config.new.get_setup_type_fm_server \ No newline at end of file