Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Noah
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Noah
Commits
3efdef0f
Commit
3efdef0f
authored
Aug 05, 2011
by
John E. Vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding logging options and fixing the redis url mess
parent
91ffd042
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
noah-watcher.rb
bin/noah-watcher.rb
+5
-1
No files found.
bin/noah-watcher.rb
View file @
3efdef0f
...
...
@@ -27,6 +27,8 @@ require 'json'
opts
=
Slop
.
parse
do
banner
"Usage: noah-watcher.rb [options]"
on
:r
,
:redis_url
,
'Redis URL to use. This MUST match what the Noah server is using for now'
,
:default
=>
'redis://localhost:6379/0'
,
:argument
=>
true
on
:o
,
:output
,
'Log destination - full file path. Default is STDOUT'
,
:default
=>
STDOUT
,
:argument
=>
true
on
'--depinstall'
,
"Installs additional dependencies"
do
puts
"Installing dependencies"
puts
"em-hiredis..."
...
...
@@ -54,6 +56,8 @@ rescue LoadError => e
exit
end
ENV
[
'REDIS_URL'
]
=
opts
[
:redis_url
]
begin
require
'noah'
require
'noah/agent'
...
...
@@ -62,7 +66,7 @@ rescue Errno::ECONNREFUSED
exit
end
Noah
::
Log
.
logger
=
Logger
.
new
(
STDOUT
)
Noah
::
Log
.
logger
=
Logger
.
new
(
opts
[
:output
]
)
LOGGER
=
Noah
::
Log
.
logger
LOGGER
.
progname
=
__FILE__
...
...
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