Class/Module Index [+]

Quicksearch

Rudy::CLI::Keypairs

Public Instance Methods

keypairs() click to toggle source
# File lib/rudy/cli/keypairs.rb, line 24
def keypairs
  li Rudy::AWS::EC2::Keypairs.get(current_user_keypairname)
end
keypairs_add() click to toggle source
# File lib/rudy/cli/keypairs.rb, line 12
def keypairs_add 
  li current_group_name
end
keypairs_add_valid?() click to toggle source
# File lib/rudy/cli/keypairs.rb, line 8
def keypairs_add_valid?
  true
end
keypairs_show() click to toggle source
# File lib/rudy/cli/keypairs.rb, line 32
def keypairs_show
  content = File.read(@pkey)
  rkey = Rye::Key.new content
  li "# #{@pkey}"
  li content
  li rkey.public_key
end
keypairs_show_valid?() click to toggle source
# File lib/rudy/cli/keypairs.rb, line 28
def keypairs_show_valid?
  keypairs_valid?
end
keypairs_valid?() click to toggle source
# File lib/rudy/cli/keypairs.rb, line 16
def keypairs_valid?
  @pkey = current_user_keypairpath
  unless File.exists? @pkey
    raise "No private key file for #{current_machine_user} in #{current_group_name}"
  end
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.