-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2019 The Wazo Authors (see the AUTHORS file) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
from __future__ import unicode_literals | ||
|
||
from StringIO import StringIO | ||
|
||
from xivo_dao.resources.asterisk_file import dao as asterisk_file_dao | ||
|
||
from ..helpers.asterisk import AsteriskFileGenerator | ||
|
||
|
||
class HEPConfGenerator(object): | ||
|
||
def __init__(self, dependencies): | ||
self.dependencies = dependencies | ||
|
||
def generate(self): | ||
asterisk_file_generator = AsteriskFileGenerator(asterisk_file_dao) | ||
output = StringIO() | ||
asterisk_file_generator.generate('hep.conf', output) | ||
return output.getvalue() |