Methods
public instance
Public instance methods
keypairs
()
[show source]
# File lib/rudy/cli/keypairs.rb, line 24 24: def keypairs 25: li Rudy::AWS::EC2::Keypairs.get(current_user_keypairname) 26: end
keypairs_add
()
[show source]
# File lib/rudy/cli/keypairs.rb, line 12 12: def keypairs_add 13: li current_group_name 14: end
keypairs_add_valid?
()
[show source]
# File lib/rudy/cli/keypairs.rb, line 8 8: def keypairs_add_valid? 9: true 10: end
keypairs_show
()
[show source]
# File lib/rudy/cli/keypairs.rb, line 32 32: def keypairs_show 33: content = File.read(@pkey) 34: rkey = Rye::Key.new content 35: li "# #{@pkey}" 36: li content 37: li rkey.public_key 38: end
keypairs_show_valid?
()
[show source]
# File lib/rudy/cli/keypairs.rb, line 28 28: def keypairs_show_valid? 29: keypairs_valid? 30: end
keypairs_valid?
()
[show source]
# File lib/rudy/cli/keypairs.rb, line 16 16: def keypairs_valid? 17: @pkey = current_user_keypairpath 18: unless File.exists? @pkey 19: raise "No private key file for #{current_machine_user} in #{current_group_name}" 20: end 21: true 22: end