Skip to content

Commit

Permalink
params: rename helpStr to description.
Browse files Browse the repository at this point in the history
  • Loading branch information
alenz33 committed Mar 20, 2015
1 parent e13bd25 commit c5188eb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions conduct/buildsteps.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ class BuildStep(object):

parameters = {
'description' : Parameter(type=str,
helpStr='Build step description',
description='Build step description',
default='Undescribed'),
'loglevel' : Parameter(type=oneof(LOGLEVELS.keys()),
helpStr='Log level',
description='Log level',
default='info'),
}

Expand Down Expand Up @@ -163,9 +163,9 @@ def _initLogger(self):

class CopyBS(BuildStep):
parameters = {
'source' : Parameter(type=str, helpStr='Source to copy'),
'destination' : Parameter(type=str, helpStr='Destination of copy'),
'recursive' : Parameter(type=bool, helpStr='Copy directories recursively'),
'source' : Parameter(type=str, description='Source to copy'),
'destination' : Parameter(type=str, description='Destination of copy'),
'recursive' : Parameter(type=bool, description='Copy directories recursively'),
}

def run(self, args):
Expand Down
4 changes: 2 additions & 2 deletions conduct/param.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class Parameter(object):
No default means mandatory.
'''
def __init__(self, type=str, helpStr='Undescribed', default=None):
def __init__(self, type=str, description='Undescribed', default=None):
self.type = type
self.helpStr = helpStr,
self.description = description,
self.default = default

if default is not None:
Expand Down
3 changes: 2 additions & 1 deletion etc/conduct.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[conduct]

# logging
logdir = /var/log/conduct
loglevel = debug

chaindir = etc/chains

0 comments on commit c5188eb

Please sign in to comment.