class Chef::Knife::ScalewayAccountInfo
Public Instance Methods
run()
click to toggle source
# File lib/chef/knife/scaleway_account_info.rb, line 22 def run $stdout.sync = true validate! account_info = [ ui.color('UUID', :bold), ui.color('Email', :bold), ui.color('Droplet Limit', :bold), ui.color('Email Verified', :bold) ] account = client.account.info account_info << account.uuid.to_s account_info << account.email.to_s account_info << account.server_limit.to_s account_info << account.email_verified.to_s puts ui.list(account_info, :uneven_columns_across, 4) end