deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 1/2] Client: Added formatter for Key collection (DTACLOUD-199)
Date Thu, 26 Apr 2012 14:27:01 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 client/lib/plain_formatter.rb |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/client/lib/plain_formatter.rb b/client/lib/plain_formatter.rb
index 8854d68..a8a501e 100644
--- a/client/lib/plain_formatter.rb
+++ b/client/lib/plain_formatter.rb
@@ -23,6 +23,15 @@ module DeltaCloud
         end
       end
 
+      class Key < Base
+        def format
+          sprintf("%-10s | %-60s",
+              @obj.id[0,10],
+              @obj.fingerprint
+          )
+        end
+      end
+
       class Image < Base
         def format
           sprintf("%-10s | %-20s | %-6s | %-20s | %15s",
-- 
1.7.10


Mime
View raw message