Replacing legacy references of ci-watch to ciwatch
Change-Id: I20e216caf683f34e4d98e6f82d921bbe5a57f05e
This commit is contained in:
parent
f52b39f483
commit
6f1fee7f2b
@ -30,8 +30,8 @@ class Config(object):
|
|||||||
def get_config(self):
|
def get_config(self):
|
||||||
this_file = os.path.dirname(os.path.realpath(__file__))
|
this_file = os.path.dirname(os.path.realpath(__file__))
|
||||||
this_dir = os.path.dirname(this_file)
|
this_dir = os.path.dirname(this_file)
|
||||||
conf_files = [os.path.join(this_dir, 'ci-watch.conf'),
|
conf_files = [os.path.join(this_dir, 'ciwatch.conf'),
|
||||||
'/etc/ciwatch/ci-watch.conf']
|
'/etc/ciwatch/ciwatch.conf']
|
||||||
# Read first existing conf file, ignore the rest
|
# Read first existing conf file, ignore the rest
|
||||||
for conf_file in conf_files:
|
for conf_file in conf_files:
|
||||||
if os.path.exists(conf_file):
|
if os.path.exists(conf_file):
|
||||||
|
@ -38,4 +38,4 @@ def setup_logger(name):
|
|||||||
return logger
|
return logger
|
||||||
|
|
||||||
|
|
||||||
logger = setup_logger(config.DATA_DIR + '/ci-watch.log')
|
logger = setup_logger(config.DATA_DIR + '/ciwatch.log')
|
||||||
|
@ -12,9 +12,9 @@ Or, if you have virtualenvwrapper installed::
|
|||||||
$ pip install .
|
$ pip install .
|
||||||
|
|
||||||
|
|
||||||
Configuration is stored in the ``ci-watch.conf`` file. Importantly, you can
|
Configuration is stored in the ``ciwatch.conf`` file. Importantly, you can
|
||||||
specify a directory to store the ``third-party-ci.log`` file (data\_dir) as
|
specify a directory to store the ``third-party-ci.log`` file (data\_dir) as
|
||||||
well as the database to connect to. Look at ``ci-watch.conf.sample`` for an
|
well as the database to connect to. Look at ``ciwatch.conf.sample`` for an
|
||||||
example.
|
example.
|
||||||
|
|
||||||
Other settings should be self explanatory based on the provided configuration
|
Other settings should be self explanatory based on the provided configuration
|
||||||
|
@ -4,10 +4,10 @@ Usage
|
|||||||
|
|
||||||
At the moment, this package provides three commands.
|
At the moment, this package provides three commands.
|
||||||
|
|
||||||
``ci-watch-server``. Launch a development server.
|
``ciwatch-server``. Launch a development server.
|
||||||
|
|
||||||
``ci-watch-stream-events``. Stream events from Gerrit and append valid
|
``ciwatch-stream-events``. Stream events from Gerrit and append valid
|
||||||
events to ``third-party-ci.log``.
|
events to ``third-party-ci.log``.
|
||||||
|
|
||||||
``ci-watch-populate-database``. Add all entries from
|
``ciwatch-populate-database``. Add all entries from
|
||||||
``third-party-ci.log`` to the database.
|
``third-party-ci.log`` to the database.
|
||||||
|
@ -24,9 +24,9 @@ packages =
|
|||||||
|
|
||||||
[entry_points]
|
[entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
ci-watch-server = ciwatch.server:main
|
ciwatch-server = ciwatch.server:main
|
||||||
ci-watch-populate-database = ciwatch.populate:main
|
ciwatch-populate-database = ciwatch.populate:main
|
||||||
ci-watch-stream-events = ciwatch.events:main
|
ciwatch-stream-events = ciwatch.events:main
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
source-dir = doc/source
|
source-dir = doc/source
|
||||||
|
Loading…
x
Reference in New Issue
Block a user