lib/shelly/cli/main.rb in shelly-0.0.29 vs lib/shelly/cli/main.rb in shelly-0.0.30

- old
+ new

@@ -207,18 +207,18 @@ desc "delete CODE-NAME", "Delete cloud from Shelly Cloud" def delete(code_name = nil) user = Shelly::User.new user.token if code_name.present? - app = Shelly::App.new + app = Shelly::App.new(code_name) say "You are about to delete application: #{code_name}." say "Press Control-C at any moment to cancel." say "Please confirm each question by typing yes and pressing Enter." say_new_line ask_to_delete_files ask_to_delete_database ask_to_delete_application - app.delete(code_name) + app.delete say_new_line say "Scheduling application delete - done" if App.inside_git_repository? app.remove_git_remote say "Removing git remote - done"