Module | Rudy::Huxtable |
In: |
lib/rudy/huxtable.rb
|
Huxtable gives access to instances for config, global, and logger to any class that includes it.
class Rudy::Hello include Rudy::Huxtable def print_config p @@config.defaults # {:nocolor => true, ...} p @@global.verbose # => 1 p @@logger.class # => StringIO end end
Returns the name of the current keypair for the given user. If there‘s a private key path in the config this will return the basename (it‘s assumed the Amazon Keypair has the same name as the file). Otherwise this returns the Rudy style name: key-ZONE-ENV-ROLE-USER. Or if this the user is root: key-ZONE-ENV-ROLE