class Chef::Knife::JoyentServerPricing
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/joyent_server_pricing.rb, line 28 def run flavors = [] self.connection.servers.each do |s| flavor = s.package || 'unknown' flavors << flavor end config = Chef::Config[:knife] reporter = Joyent::Cloud::Pricing::Reporter.new(config[:reserve_pricing], flavors) reporter.print_zone_list = config[:show_zones] puts reporter.render(:disable_color => config[:no_color]) rescue => e output_error(e) end