Sha256: 055d58b577c64fdb075313a5748cc6191e51a560b30d7d90d028ee6599b962cb
Contents?: true
Size: 668 Bytes
Versions: 8
Compression:
Stored size: 668 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/base') module KnifeJoyent class JoyentImageList < Chef::Knife include KnifeJoyent::Base banner "knife joyent image list <options>" def run images = [ ui.color('ID', :bold), ui.color('Name', :bold), ui.color('Version', :bold), ui.color('OS', :bold), ui.color('Type', :bold), ] self.connection.images.sort_by(&:name).each do |i| images << i.id.to_s images << i.name images << i.version images << i.os images << i.type end puts ui.list(images, :uneven_columns_across, 5) end end end
Version data entries
8 entries across 8 versions & 1 rubygems