Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9338434
datacat_collector.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
576 B
Subscribers
None
datacat_collector.rb
View Options
Puppet
::
Type
.
newtype
(
:datacat_collector
)
do
newparam
(
:path
,
:namevar
=>
true
)
do
end
newproperty
(
:template
)
do
end
newparam
(
:template_body
)
do
end
autorequire
(
:datacat_fragment
)
do
catalog
.
resources
.
find_all
{
|
r
|
r
.
is_a?
(
Puppet
::
Type
.
type
(
:datacat_fragment
))
and
r
[
:target
]
==
self
[
:path
]
}
end
end
class
Puppet
::
Type
::
Datacat
@@data
=
{}
def
self
.
set_data
(
path
,
data
)
@@data
[
path
]
||=
{}
@@data
[
path
].
merge!
(
data
)
end
def
self
.
get_data
(
path
)
@@data
[
path
]
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jul 4 2025, 8:48 AM (6 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3411479
Attached To
R151 puppet-richardc-datacat
Event Timeline
Log In to Comment