class Idlc::Deploy::Config
def whoami
def whoami # This method is meant to be run on an instance inside of a chef run to # provision instance and environment metadata. ENV['AWS_REGION'] = get_region # Get the current instance id from the instance metadata. instance = get_instance # return environment metadata metadata = get_env_metadata(instance['tags']['environment_key']) metadata['hostname'] = set_hostname(instance) metadata end