Merge "Stacktach general configs"
This commit is contained in:
38
cloudcafe/stacktach/config.py
Normal file
38
cloudcafe/stacktach/config.py
Normal file
@@ -0,0 +1,38 @@
|
||||
"""
|
||||
Copyright 2013 Rackspace
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
"""
|
||||
|
||||
from cloudcafe.common.models.configuration import ConfigSectionInterface
|
||||
|
||||
|
||||
class StacktachConfig(ConfigSectionInterface):
|
||||
|
||||
SECTION_NAME = 'stacktach'
|
||||
|
||||
@property
|
||||
def event_id(self):
|
||||
return self.get('event_id')
|
||||
|
||||
@property
|
||||
def url(self):
|
||||
return self.get('url')
|
||||
|
||||
@property
|
||||
def db_url(self):
|
||||
return self.get('db_url')
|
||||
|
||||
@property
|
||||
def days_passed(self):
|
||||
return self.get('days_passed')
|
||||
9
configs/stacktach/default.config
Normal file
9
configs/stacktach/default.config
Normal file
@@ -0,0 +1,9 @@
|
||||
[misc]
|
||||
serializer=json
|
||||
deserializer=json
|
||||
|
||||
[stacktach]
|
||||
event_id=<id of an event>
|
||||
url=<stacky url>
|
||||
db_url=<stacktach db api url>
|
||||
days_passed=<number of days passed>
|
||||
Reference in New Issue
Block a user