def load_configuration(path)
      config = YAML.load_file(path)

      unless config.kind_of?(Hash)
        raise(InvalidConfig,"DeploYML file #{path.dump} does not contain a Hash",caller)
      end

      return config
    end
def load_configuration(path)
      config = YAML.load_file(path)

      unless config.kind_of?(Hash)
        raise(InvalidConfig,"DeploYML file #{path.dump} does not contain a Hash",caller)
      end

      return config
    end
Loads configuration from a YAML file.

 @param [String] path
   The path to the configuration file.

 @return [Hash]
   The loaded configuration.

 @raise [InvalidConfig]
   The configuration file did not contain a YAML Hash.

 @since 0.4.1