OpenShift::ApacheDBJSON

Manage the nodejs route file via the same API as Apache

Constants

SUFFIX

Public Instance Methods

callout() click to toggle source
# File lib/openshift-origin-node/model/frontend_httpd.rb, line 1120
def callout
end
decode_contents(f) click to toggle source
# File lib/openshift-origin-node/model/frontend_httpd.rb, line 1109
def decode_contents(f)
  begin
    self.replace(JSON.load(f))
  rescue TypeError, JSON::ParserError
  end
end
encode_contents(f) click to toggle source
# File lib/openshift-origin-node/model/frontend_httpd.rb, line 1116
def encode_contents(f)
  f.write(JSON.pretty_generate(self.to_hash))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.