Skip to content

Commit

Permalink
Adjust docs to better describe writing a buildstep
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Howell authored and Dustin J. Mitchell committed Jul 26, 2010
1 parent 74ede5e commit b525c31
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion master/docs/cfg-buildsteps.texinfo
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ class Frobinfy(LoggingBuildStep):
frob_what="frobee",
frob_how_many=None,
frob_how=None,
**kwargs)
**kwargs):
# check
if frob_how_many is None:
Expand All @@ -1923,6 +1923,11 @@ class Frobinfy(LoggingBuildStep):
# call parent
LoggingBuildStep.__init__(self, **kwargs)
# set Frobnify attributes
self.frob_what = frob_what
self.frob_how_many = how_many
self.frob_how = frob_how
# and record arguments for later
self.addFactoryArguments(
frob_what=frob_what,
Expand All @@ -1934,6 +1939,7 @@ class FastFrobnify(Frobnify):
speed=5,
**kwargs)
Frobnify.__init__(self, **kwargs)
self.speed = speed
self.addFactoryArguments(
speed=speed)
@end example
Expand Down

0 comments on commit b525c31

Please sign in to comment.