spec/liberty_buildpack/services/mongo_spec.rb
#----------------------------------------------
# Helper method that adds a library/fileset into a REXML server.xml doc
#----------------------------------------------
Helper method that adds a library/fileset into a REXML server.xml doc
Helper method that adds a library / fileset into a REXML server . xml doc
def add_fileset(doc, lib_id, fileset_id, dir, includes)
        library = REXML::Element.new('library', doc)
        library.add_attribute('id', lib_id)
        fileset = REXML::Element.new('fileset', library)
        fileset.add_attribute('id', fileset_id)
        fileset.add_attribute('dir', dir)
        fileset.add_attribute('includes', includes)
      end
def add_fileset ( doc , lib_id , fileset_id , dir , includes ) library = REXML :: Element . new ( 'library' , doc ) library . add_attribute ( 'id' , lib_id ) fileset = REXML :: Element . new ( 'fileset' , library ) fileset . add_attribute ( 'id' , fileset_id ) fileset . add_attribute ( 'dir' , dir ) fileset . add_attribute ( 'includes' , includes ) end
Helper method that adds a library/fileset into a REXML server.xml doc
Helper method that adds a library / fileset into a REXML server . xml doc
doc
lib_id
fileset_id
dir
includes