OpenShift::Runtime::Frontend::Http::Plugins::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/runtime/frontend/http/plugins/apachedb.rb, line 290
def callout
end
decode_contents(f) click to toggle source
# File lib/openshift/runtime/frontend/http/plugins/apachedb.rb, line 279
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/runtime/frontend/http/plugins/apachedb.rb, line 286
def encode_contents(f)
  f.write(JSON.pretty_generate(self.to_hash))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.