module Commands::KubeConfigUpdate

Public Instance Methods

kubeconfig_update() click to toggle source
# File lib/busbar_cli/commands/kubeconfig_update.rb, line 12
def kubeconfig_update
  puts
  puts "Checking if you are using the latest version of the kubectl config file\n" \
       'You\'ll see an update message if an update was necessary'
  puts

  Services::Kube.config_download(true) if options.force?
  Services::Kube.config_download unless options.force?

  puts
  puts 'Done!'
  puts
end