def add_resource(type, title, params = {})
      catalog.add_resource(new_resource(type, title, params))
    end
def add_resource(type, title, params = {})
      catalog.add_resource(new_resource(type, title, params))
    end
Creates a new Puppet Resource and adds it to the Catalog.