# File lib/blimpy/cli.rb, line 124 def ssh(name=nil, *args) ensure_blimpfile unless name.nil? box = box_by_name(name) if box.nil? puts "Could not find a blimp named \"#{name}\"" exit 1 end else blimps = current_blimps unless blimps puts "No Blimps running!" exit 1 end blimps.each do |blimp, data| next unless data[:name] box = box_by_name(data[:name]) end end box.wait_for_sshd box.ssh_into end