class 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 1083
def callout
end
decode_contents(f) click to toggle source
# File lib/openshift-origin-node/model/frontend_httpd.rb, line 1072
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 1079
def encode_contents(f)
  f.write(JSON.generate(self.to_hash))
end