Merge "Stacktach general configs"

This commit is contained in:
Jenkins
2013-08-21 21:28:15 +00:00
committed by Gerrit Code Review
2 changed files with 47 additions and 0 deletions

View 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')

View 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>