2013-07-17 13:35:36 +01:00
|
|
|
json.repository do
|
|
|
|
json.partial! 'repository', :repository => @repository
|
|
|
|
json.key_pair do
|
2012-12-21 14:06:07 +00:00
|
|
|
if @repository.key_pair
|
2013-07-17 13:35:36 +01:00
|
|
|
json.(@repository.key_pair, :public, :secret)
|
2012-12-21 14:06:07 +00:00
|
|
|
else
|
2013-07-17 13:35:36 +01:00
|
|
|
json.public ''
|
|
|
|
json.secret ''
|
2012-12-21 14:06:07 +00:00
|
|
|
end
|
2012-12-20 19:46:16 +00:00
|
|
|
end
|
|
|
|
end
|