module Avmtrf1::Red::Helper
def post(url, *post_args)
def post(url, *post_args) infom "Requesting \"#{url}\"" ::EacEnvs::Http::Request.new.url(url.to_s).verb(:post).body_data(post_args.first).response .body_str_or_raise end
def post_xml(url_suffix, xml_body)
def post_xml(url_suffix, xml_body) url = server.resource_url(url_suffix) ::Nokogiri::XML(post(url, xml_body)) end
def xml_content(name)
def xml_content(name) ::ERB.new(::File.read(xml_path(name))).result(binding) end
def xml_path(name)
def xml_path(name) ::File.join(__dir__, self.class.name.demodulize.underscore, "#{name}.xml.erb") end