module Commands::DestroyDatabase
Public Instance Methods
destroy_db(database_id)
click to toggle source
# File lib/busbar_cli/commands/destroy_database.rb, line 10 def destroy_db(database_id) Services::Kube.configure_temporary_profile(options.profile) database = DatabasesRepository.find(name: database_id) if database.nil? puts "Database #{database_id} not found" return end Services::DatabaseDestroyer.call(database) end