You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/04/30 12:17:27 UTC

[2/2] git commit: Client: Added formatter for Key collection (DTACLOUD-199)

Client: Added formatter for Key collection (DTACLOUD-199)


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/1a4b46e3
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/1a4b46e3
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/1a4b46e3

Branch: refs/heads/master
Commit: 1a4b46e3712941cb19ff8d2d8054362fc445de0f
Parents: c13da7b
Author: Michal Fojtik <mf...@redhat.com>
Authored: Thu Apr 26 16:22:25 2012 +0200
Committer: Michal fojtik <mf...@redhat.com>
Committed: Thu Apr 26 16:22:25 2012 +0200

----------------------------------------------------------------------
 client/lib/plain_formatter.rb |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1a4b46e3/client/lib/plain_formatter.rb
----------------------------------------------------------------------
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",