lib/dcloud/image.rb in deltacloud-client-0.0.2 vs lib/dcloud/image.rb in deltacloud-client-0.0.3
- old
+ new
@@ -40,7 +40,17 @@
@name = xml.text( 'name' )
@architecture = xml.text( 'architecture' )
end
end
+ def to_plain
+ sprintf("%-10s | %-20s | %-6s | %-20s | %15s",
+ self.id[0,10],
+ self.name ? self.name[0, 20]: 'unknown',
+ self.architecture[0,6],
+ self.description[0,20],
+ self.owner_id[0,15]
+ )
+ end
+
end
end