spec/liberty_buildpack/services/mongo_spec.rb
#----------------------------------------------
# Helper method that adds a mongoDB stanza into a REXML server.xml doc
#----------------------------------------------
Helper method that adds a mongoDB stanza into a REXML server.xml doc
Helper method that adds a mongoDB stanza into a REXML server . xml doc
def add_mongo_db(doc, mongo_db_id, db, jndi, mongo_id)
        mongodb = REXML::Element.new('mongoDB', doc)
        mongodb.add_attribute('id', mongo_db_id)
        mongodb.add_attribute('databaseName', db)
        mongodb.add_attribute('jndiName', jndi)
        mongodb.add_attribute('mongoRef', mongo_id)
      end
def add_mongo_db ( doc , mongo_db_id , db , jndi , mongo_id ) mongodb = REXML :: Element . new ( 'mongoDB' , doc ) mongodb . add_attribute ( 'id' , mongo_db_id ) mongodb . add_attribute ( 'databaseName' , db ) mongodb . add_attribute ( 'jndiName' , jndi ) mongodb . add_attribute ( 'mongoRef' , mongo_id ) end
Helper method that adds a mongoDB stanza into a REXML server.xml doc
Helper method that adds a mongoDB stanza into a REXML server . xml doc
doc
mongo_db_id
db
jndi
mongo_id