lib/app42/command/base.rb in app42-0.6.2 vs lib/app42/command/base.rb in app42-0.6.3

- old
+ new

@@ -969,11 +969,11 @@ # true:: if cloud setup deleted # OR # ERROR message in case failed def delete_cloudapi setup_name begin - response = with_progress(Paint["Deleting Setup", :yellow]) do |s| + response = with_progress(Paint["Deleting BPaaS Setup", :yellow]) do |s| query_params = params query_params.store('setupName', setup_name) build_delete_request query_params, "setup", "#{setup_name}" end @@ -1028,11 +1028,11 @@ def delete_wordpress wordpress_name begin response = with_progress(Paint["Deleting WordPress Setup", :yellow]) do |s| query_params = params query_params.store('setupName', wordpress_name) - build_delete_request query_params, "setup", "#{wordpress_name}" + build_delete_request query_params, "wordpress", "#{wordpress_name}" end transaction_success = check_transaction_status response["transactionId"], previous_completed = 0, 'deleted' if response["success"] == true && response["transactionId"] response['success'] ? (return true) : (message "#{response['description']}", true, 'red') @@ -1136,20 +1136,20 @@ "setupName" => setup_name }}}.to_json query_params = params query_params.store('body', body) - build_put_request body, query_params, "setup", "#{what}" if what.to_s == 'stop' + build_put_request body, query_params, "wordpress", "#{what}" if what.to_s == 'stop' end else response = with_progress(Paint["#{what.capitalize}ing Wordpress Setup #{setup_name}", :yellow]) do |s| body = {'app42' => {"request"=> { "setupName" => setup_name }}}.to_json query_params = params query_params.store('body', body) - build_put_request body, query_params, "setup", "#{what}" if what.to_s == 'restart' || what.to_s == 'start' + build_put_request body, query_params, "wordpress", "#{what}" if what.to_s == 'restart' || what.to_s == 'start' end end if response["success"] == true && response["transactionId"] if what.to_s == 'stop' \ No newline at end of file