lib/vidar/cli.rb in vidar-1.4.0 vs lib/vidar/cli.rb in vidar-1.4.1

- old
+ new

@@ -156,10 +156,10 @@ Log.error "No running containers found with *#{name}* name" exit(1) else Log.info "Available containers:" containers.each(&:print) - container = containers.first + container = containers.detect { c.name == 'console' } || containers.last Log.info "Running #{options[:command]} in #{container.pod_name}" Run.kubectl("exec -it #{container.pod_name} -- #{options[:command]}") end end