Module Rudy::Huxtable
In: lib/rudy/huxtable.rb

Rudy::Huxtable

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

Methods

Public Class methods

Puts msg to +@@logger+ if +Rudy.debug?+ returns true

Puts msg to +@@logger+ with "ERROR: " prepended

Puts msg to +@@logger+

Public Instance methods

TODO: fix machine_group to include zone

Looks for ENV-ROLE configuration in machines. There must be at least one definition in the config for this to return true That‘s how Rudy knows the current group is defined.

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

[Validate]