Permalink
Browse files

Add generated at timestamp metadata to services

  • Loading branch information...
1 parent e901983 commit ad46de8b29415c3392a52e2755236aae8b93c32e @paul paul committed Jun 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
View
@@ -22,8 +22,12 @@ namespace :services do
:title => svc.title, :schema => svc.schema}
end
services.sort! { |x, y| x[:name] <=> y[:name] }
+ data = {
+ :metadata => { :generated_at => Time.now.utc },
+ :services => services
+ }
File.open file, 'w' do |io|
- io << Yajl.dump(services, :pretty => true)
+ io << Yajl.dump(data, :pretty => true)
end
end
end

0 comments on commit ad46de8

Please sign in to comment.