示例#1
0
文件: Info.py 项目: Skadisson/phoenix
 def __init__(self):
     self.environment = Environment.Environment()
     self.logger = Logger.Logger()
     self.card_storage = CardStorage.CardStorage()
     self.favourite_storage = FavouriteStorage.FavouriteStorage()
     self.query_storage = QueryStorage.QueryStorage()
     self.so_storage = ShoutOutStorage.ShoutOutStorage()
示例#2
0
 def __init__(self):
     super().__init__()
     self.environment = Environment.Environment()
     self.logger = Logger.Logger()
     self.token = None
     self.consumer = None
     self.client = None
     self.regex = RegEx.RegEx()
     self.init_api()
     self.card_transfer = CardTransfer.CardTransfer()
示例#3
0
 def __init__(self):
     super().__init__()
     self.environment = Environment.Environment()
     self.logger = Logger.Logger()
     self.confluence = Confluence(
         self.environment.get_endpoint_confluence_host(),
         username=self.environment.get_endpoint_confluence_user(),
         password=self.environment.get_endpoint_confluence_password())
     self.card_transfer = CardTransfer.CardTransfer()
     self.regex = RegEx.RegEx()
示例#4
0
 def __init__(self):
     self.notification_storage = NotificationStorage.NotificationStorage()
     self.logger = Logger.Logger()
示例#5
0
 def __init__(self):
     self.logger = Logger.Logger()
     self.so_storage = ShoutOutStorage.ShoutOutStorage()
示例#6
0
 def __init__(self):
     self.logger = Logger.Logger()
     self.environment = Environment.Environment()
     self.storage = CardStorage.CardStorage()
示例#7
0
 def __init__(self):
     self.storage = CardStorage.CardStorage()
     self.logger = Logger.Logger()
示例#8
0
文件: Name.py 项目: Skadisson/phoenix
 def __init__(self):
     self.logger = Logger.Logger()
示例#9
0
 def __init__(self):
     self.card_storage = CardStorage.CardStorage()
     self.favourite_storage = FavouriteStorage.FavouriteStorage()
     self.logger = Logger.Logger()
示例#10
0
 def __init__(self):
     self.environment = Environment.Environment()
     self.mongo = MongoClient(self.environment.get_endpoint_mongo_db_cloud())
     self.logger = Logger.Logger()
     self.card_transfer = CardTransfer.CardTransfer()
示例#11
0
 def __init__(self):
     self.storage = FavouriteStorage.FavouriteStorage()
     self.logger = Logger.Logger()
示例#12
0
文件: Ping.py 项目: Skadisson/phoenix
 def __init__(self):
     self.info = Info.Info()
     self.logger = Logger.Logger()
示例#13
0
 def __init__(self):
     self.logger = Logger.Logger()
     self.environment = Environment.Environment()
     self.mongo = None
     self.connect_mongodb()
示例#14
0
from bin.service import ConfluenceAPI
from bin.service import Gitlab
from bin.service import Jira
from bin.service import Logger
from bin.service import Environment
import threading

logger = Logger.Logger()
environment = Environment.Environment()
try:

    confluence_done = False
    jira_done = False
    git_done = False

    def confluence_thread():
        global confluence_done
        print('--- confluence thread started ---')
        confluence = ConfluenceAPI.ConfluenceAPI()
        confluence.sync_entries(0)
        confluence_done = True

    def jira_thread():
        global jira_done
        print('--- jira thread started ---')
        jira = Jira.Jira()
        jira.sync_entries(0)
        jira_done = True

    def git_thread():
        global git_done
示例#15
0
 def __init__(self):
     self.search = ContextSearch.ContextSearch()
     self.storage = CardStorage.CardStorage()
     self.latest = Latest.Latest()
     self.logger = Logger.Logger()
示例#16
0
 def __init__(self):
     self.storage = CardStorage.CardStorage()
     self.context_search = ContextSearch.ContextSearch()
     self.sci_kit_learn = SciKitLearn.SciKitLearn()
     self.logger = Logger.Logger()
示例#17
0
 def __init__(self):
     self.card_storage = CardStorage.CardStorage()
     self.query_storage = QueryStorage.QueryStorage()
     self.logger = Logger.Logger()
示例#18
0
 def __init__(self):
     self.info = Info.Info()
     self.logger = Logger.Logger()
     self.environment = Environment.Environment()