module Commands::Copy
Public Instance Methods
copy(source_file, destination_file)
click to toggle source
# File lib/busbar_cli/commands/copy.rb, line 13 def copy(source_file, destination_file) Services::Kube.configure_temporary_profile(options.profile) container_option = " -c #{options.container}" if options.container Kernel.exec( "#{KUBECTL} --context=#{Services::Kube.current_profile} " \ "cp #{source_file} #{destination_file}#{container_option}" ) end