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
553aeed8
Commit
553aeed8
authored
Feb 10, 2011
by
John E. Vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some quick stubs before bed
parent
81bb62dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
app.rb
lib/noah/app.rb
+8
-0
ark.rb
lib/noah/ark.rb
+0
-0
watchers.rb
lib/noah/watchers.rb
+6
-0
No files found.
lib/noah/app.rb
View file @
553aeed8
...
@@ -52,6 +52,14 @@ module Noah
...
@@ -52,6 +52,14 @@ module Noah
erb
:'500'
erb
:'500'
end
end
# Placeholder for admin functions
namespace
"/ark"
do
end
# Placeholder for watchers
namespace
"/w"
do
end
namespace
"/h"
do
namespace
"/h"
do
get
'/:hostname/:servicename/?'
do
|
hostname
,
servicename
|
get
'/:hostname/:servicename/?'
do
|
hostname
,
servicename
|
...
...
lib/noah/ark.rb
0 → 100644
View file @
553aeed8
lib/noah/watchers.rb
View file @
553aeed8
...
@@ -16,3 +16,9 @@ class Watcher < Ohm::Model #NYI
...
@@ -16,3 +16,9 @@ class Watcher < Ohm::Model #NYI
assert_unique
[
:client
,
:endpoint
,
:event
,
:action
]
assert_unique
[
:client
,
:endpoint
,
:event
,
:action
]
end
end
end
end
class
Watchers
def
self
.
all
(
options
=
{})
options
.
empty?
?
Watcher
.
all
.
sort
:
Watcher
.
find
(
options
).
sort
end
end
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