# File lib/rudy/cli/aws/ec2/instances.rb, line 116 116: def consoles_valid? 117: if @@global.pkey 118: raise "Cannot find file #{@@global.pkey}" unless File.exists?(@@global.pkey) 119: raise "Insecure permissions for #{@@global.pkey}" unless (File.stat(@@global.pkey).mode & 600) == 0 120: end 121: raise "No instances" unless Rudy::AWS::EC2::Instances.any? 122: true 123: end