Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d707b3a680
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (30 sloc) 0.679 kb
# Monkey Patch Commander::UI to alias password to avoid conflicts
module Commander::UI
alias :pw :password
end
module Cupertino
module ProvisioningPortal
module Helpers
def hasharray_to_table(hav, title)
Terminal::Table.new :title => title do |t|
headers = []
hav[0].keys.each do |header|
headers << "#{header}"
end
t << headers
t << :separator
hav.each do |rv|
row = []
rv.values.each do |cv|
row << "#{cv}"
end
t << row
end
end
end
end
end
end
class String
include Term::ANSIColor
end
Jump to Line
Something went wrong with that request. Please try again.