lib/percheron/unit/image_helper.rb in percheron-0.8.0 vs lib/percheron/unit/image_helper.rb in percheron-0.8.1
- old
+ new
@@ -26,8 +26,12 @@
end
def image_exists?
image.nil? ? false : true
end
+
+ def image_size
+ image.nil? ? nil : '%s MB' % [ image.info['VirtualSize'] / 1_048_576 ]
+ end
end
end
end