Browse Source

Replacing legacy references of ci-watch to ciwatch

Change-Id: I20e216caf683f34e4d98e6f82d921bbe5a57f05e
changes/32/246032/4
apoorvad 3 years ago
parent
commit
6f1fee7f2b
6 changed files with 11 additions and 11 deletions
  1. 0
    0
      ciwatch.conf.sample
  2. 2
    2
      ciwatch/config.py
  3. 1
    1
      ciwatch/log.py
  4. 2
    2
      doc/source/installation.rst
  5. 3
    3
      doc/source/usage.rst
  6. 3
    3
      setup.cfg

ci-watch.conf.sample → ciwatch.conf.sample View File


+ 2
- 2
ciwatch/config.py View File

@@ -30,8 +30,8 @@ class Config(object):
30 30
     def get_config(self):
31 31
         this_file = os.path.dirname(os.path.realpath(__file__))
32 32
         this_dir = os.path.dirname(this_file)
33
-        conf_files = [os.path.join(this_dir, 'ci-watch.conf'),
34
-                      '/etc/ciwatch/ci-watch.conf']
33
+        conf_files = [os.path.join(this_dir, 'ciwatch.conf'),
34
+                      '/etc/ciwatch/ciwatch.conf']
35 35
         # Read first existing conf file, ignore the rest
36 36
         for conf_file in conf_files:
37 37
             if os.path.exists(conf_file):

+ 1
- 1
ciwatch/log.py View File

@@ -38,4 +38,4 @@ def setup_logger(name):
38 38
     return logger
39 39
 
40 40
 
41
-logger = setup_logger(config.DATA_DIR + '/ci-watch.log')
41
+logger = setup_logger(config.DATA_DIR + '/ciwatch.log')

+ 2
- 2
doc/source/installation.rst View File

@@ -12,9 +12,9 @@ Or, if you have virtualenvwrapper installed::
12 12
     $ pip install .
13 13
 
14 14
 
15
-Configuration is stored in the ``ci-watch.conf`` file. Importantly, you can
15
+Configuration is stored in the ``ciwatch.conf`` file. Importantly, you can
16 16
 specify a directory to store the ``third-party-ci.log`` file (data\_dir) as
17
-well as the database to connect to. Look at ``ci-watch.conf.sample`` for an
17
+well as the database to connect to. Look at ``ciwatch.conf.sample`` for an
18 18
 example.
19 19
 
20 20
 Other settings should be self explanatory based on the provided configuration

+ 3
- 3
doc/source/usage.rst View File

@@ -4,10 +4,10 @@ Usage
4 4
 
5 5
 At the moment, this package provides three commands.
6 6
 
7
-``ci-watch-server``. Launch a development server.
7
+``ciwatch-server``. Launch a development server.
8 8
 
9
-``ci-watch-stream-events``. Stream events from Gerrit and append valid
9
+``ciwatch-stream-events``. Stream events from Gerrit and append valid
10 10
 events to ``third-party-ci.log``.
11 11
 
12
-``ci-watch-populate-database``. Add all entries from
12
+``ciwatch-populate-database``. Add all entries from
13 13
 ``third-party-ci.log`` to the database.

+ 3
- 3
setup.cfg View File

@@ -24,9 +24,9 @@ packages =
24 24
 
25 25
 [entry_points]
26 26
 console_scripts =
27
-    ci-watch-server = ciwatch.server:main
28
-    ci-watch-populate-database = ciwatch.populate:main
29
-    ci-watch-stream-events = ciwatch.events:main
27
+    ciwatch-server = ciwatch.server:main
28
+    ciwatch-populate-database = ciwatch.populate:main
29
+    ciwatch-stream-events = ciwatch.events:main
30 30
 
31 31
 [build_sphinx]
32 32
 source-dir = doc/source

Loading…
Cancel
Save