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
9c46fdb0
Commit
9c46fdb0
authored
Feb 25, 2011
by
John E. Vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stubbing out ephemerals
parent
ec7a371b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
models.rb
lib/noah/models.rb
+2
-0
ephemerals.rb
lib/noah/models/ephemerals.rb
+22
-0
No files found.
lib/noah/models.rb
View file @
9c46fdb0
...
...
@@ -45,6 +45,7 @@ module Noah
#pub_category = "#{db}:noah.#{self.class.to_s}[#{name}].#{meth}"
pub_category
=
"noah.
#{
self
.
class
.
to_s
}
.
#{
name
}
.
#{
meth
}
"
Ohm
.
redis
.
publish
(
pub_category
,
self
.
to_hash
.
merge
({
"action"
=>
meth
,
"pubcategory"
=>
pub_category
}).
to_json
)
# self.method_defined? "#{meth}_hook".to_sym
end
end
end
...
...
@@ -56,3 +57,4 @@ require File.join(File.dirname(__FILE__), 'models','services')
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'models'
,
'applications'
)
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'models'
,
'configurations'
)
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'models'
,
'watchers'
)
require
File
.
join
(
File
.
dirname
(
__FILE__
),
'models'
,
'epehmerals'
)
lib/noah/models/ephemerals.rb
0 → 100644
View file @
9c46fdb0
require
'digest/sha1'
module
Noah
class
Ephemeral
<
Model
#NYI
attribute
:path
attribute
:data
index
:path
def
validate
super
assert_present
:path
assert_unique
:path
end
def
name
@name
=
path
end
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