Skip to content

Commit

Permalink
Add generated at timestamp metadata to services
Browse files Browse the repository at this point in the history
  • Loading branch information
paul committed Jun 14, 2012
1 parent e901983 commit ad46de8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Expand Up @@ -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.