# File lib/rudy/cli/aws/ec2/keypairs.rb, line 12 12: def create_keypairs 13: kp = execute_action { Rudy::AWS::EC2::Keypairs.create(@argv.name) } 14: if [:s, :string].member?(@@global.format) 15: li "Name: #{kp.name}" 16: li "Fingerprint: #{kp.fingerprint}", $/ 17: li "Copy the following private key data into a file." 18: li "Set the permissions to 0600 and keep it safe.", $/ 19: li kp.private_key 20: else 21: print_stobject kp 22: end 23: end