Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Justin
slapos.toolbox
Commits
18fffec7
Commit
18fffec7
authored
Jan 05, 2012
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor “run” function to “main”.
parent
6bf80423
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
setup.py
setup.py
+1
-1
slapos/logfollower/__init__.py
slapos/logfollower/__init__.py
+2
-2
No files found.
setup.py
View file @
18fffec7
...
...
@@ -62,7 +62,7 @@ setup(name=name,
'equeue = slapos.equeue:main'
,
'pubsubserver = slapos.pubsub:main'
,
'pubsubnotifier = slapos.pubsub.notifier:main'
,
'logfollower = slapos.logfollower:
ru
n'
,
'logfollower = slapos.logfollower:
mai
n'
,
'runafter = slapos.runafter:main'
,
]
},
...
...
slapos/logfollower/__init__.py
View file @
18fffec7
...
...
@@ -89,7 +89,7 @@ def follow_each_line(filepath, rotated):
finally
:
os
.
close
(
follow_fd
)
def
ru
n
():
def
mai
n
():
parser
=
argparse
.
ArgumentParser
(
description
=
"Log follower."
)
parser
.
add_argument
(
'--callback'
,
'-c'
,
help
=
"Executable to call once the "
...
...
@@ -163,4 +163,4 @@ def run():
if
__name__
==
'__main__'
:
import
sys
sys
.
exit
(
ru
n
())
sys
.
exit
(
mai
n
())
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment